Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reStructuredText Grid and reddit formats #36

Merged
merged 13 commits into from
Sep 16, 2018
Merged

Conversation

dwesely
Copy link
Contributor

@dwesely dwesely commented Sep 14, 2018

Adds ReStructuredText Grid Format per issue #32 and added reddit markdown while I was in there. Updated the readme to match.

ReStructuredText Grid format uses a different separator for the top and bottom of the header, the assumption has been that the header top and bottom are the same when both are present. Might want to define headerTop, headerBottom, and bodyBottom horizontal character definitions for each style.

Reddit has no left or right side lines, but has vertical separators in the middle, which was also new. Might want to define headerLeft, headerRight, bodyLeft, and bodyRight vertical character definitions for each style.

dwesely and others added 11 commits July 14, 2016 20:42
Updating my base fork
Added line breaks and tabs to HTML output so the results are a bit easier to read in the output textarea.
First pass at implementing @rhys0178 cookie saving. Haven't got it working locally yet, and I'd like to save/load the parameters to the cookie too before committing this to the main branch.
The output auto-populates, so swapped the "Create" button out for a "Reset" button that would clear user preferences and reload the default.
ReStructuredText Grid format uses a different separator for the top and bottom of the header, the assumption has been that the header top and bottom are the same when both are present. A more robust solution could be to define headerTop, headerBottom, and bodyBottom horizontal character definitions for each style.

Reddit has no left or right side lines, but has vertical separators in the middle, which was also new. A more robust solution could be to define headerLeft, headerRight, bodyLeft, and bodyRight vertical character definitions for each style.
ReStructuredText Grid format uses a different separator for the top and bottom of the header, the assumption has been that the header top and bottom are the same when both are present. A more robust solution could be to define headerTop, headerBottom, and bodyBottom horizontal character definitions for each style.

Reddit has no left or right side lines, but has vertical separators in the middle, which was also new. A more robust solution could be to define headerLeft, headerRight, bodyLeft, and bodyRight vertical character definitions for each style.
… table into code.

Pulled out the separator line generator to its own function to reduce redundant code.

Added map of the border style variables in script.js for reference.
@dwesely dwesely mentioned this pull request Sep 14, 2018
Some styles over-ride the prefix/suffix (wikimedia, specifically). Moved prefix definition earlier to allow border style to null out the prefix/suffix.
Tabbed indents weren't lining up, converted to spaces
@ozh ozh merged commit 39501b7 into ozh:gh-pages Sep 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants