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 support for org-table syntax #194

Merged
merged 1 commit into from Mar 26, 2013
Merged

Conversation

rmm5t
Copy link
Contributor

@rmm5t rmm5t commented Feb 3, 2013

This just adds support for alternatively using a plus (+) as an intersection character instead of requiring pipes (|) when drawing the header dashes of a table. The emacs org-mode table automatically manages ascii tables, but requires the use of pluses for line intersections. I think it would be great if markdown tables could support this syntax as well.

Here's an example of a table in org-table syntax. The only difference from the already-supported markdown table syntax is the use of pluses instead of pipes in the header dash line.

| Column A | Column B | Column C |
|----------+----------+----------|
| Cell A1  | Cell B1  | Cell C1  |
| Cell A2  | Cell B2  | Cell C2  |
| Cell A3  | Cell B3  | Cell C3  |

Which would produce this:

Column A Column B Column C
Cell A1 Cell B1 Cell C1
Cell A2 Cell B2 Cell C2
Cell A3 Cell B3 Cell C3

This just adds support for using a plus (+) as an intersection character
instead of requiring pipes (|). The emacs org-mode table syntax
automatically manages ascii tables, but uses pluses for line
intersections.
robin850 added a commit that referenced this pull request Mar 26, 2013
Add support for org-table syntax
@robin850 robin850 merged commit 0daea95 into vmg:master Mar 26, 2013
@robin850
Copy link
Collaborator

Seems good to me! Thanks for this contribution. Good one!

@rmm5t
Copy link
Contributor Author

rmm5t commented Mar 26, 2013

Sweet. Thanks @robin850! Can't wait to see this supported in GitHub READMEs.

@mattr-
Copy link
Collaborator

mattr- commented Mar 26, 2013

Sorry, but GitHub doesn't use RedCarpet anymore, so I don't believe this
will show up there unless they pull it in manually somehow.

@rmm5t
Copy link
Contributor Author

rmm5t commented Mar 26, 2013

Ohs Noes! 😞

@mattr- Do you know what they're currently using so I can go submit a patch there too?

@mattr-
Copy link
Collaborator

mattr- commented Mar 26, 2013

See #212 (comment)

It's not open source, AFAIK

@rmm5t
Copy link
Contributor Author

rmm5t commented Mar 26, 2013

@vmg Who do I need to convince at GitHub to to add this small variant of the markdown table syntax to the GitHub markdown codebase so tables in READMEs are easier to maintain?

@FSX
Copy link

FSX commented Mar 26, 2013

What about Sundown?

@mattr-
Copy link
Collaborator

mattr- commented Mar 26, 2013

Still in use by redcarpet, but deprecated according to the README

@FSX
Copy link

FSX commented Mar 26, 2013

Well, ok... I guess I'll just fork Sundown and backport changes in Redcarpet to my fork.

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.

None yet

4 participants