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

Already on GitHub? Sign in to your account

Add support for org-table syntax #194

Merged
merged 1 commit into from Mar 26, 2013

Conversation

Projects
None yet
4 participants
Contributor

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

Merge pull request #194 from rmm5t/org-table-syntax
Add support for org-table syntax

@robin850 robin850 merged commit 0daea95 into vmg:master Mar 26, 2013

Collaborator

robin850 commented Mar 26, 2013

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

Contributor

rmm5t commented Mar 26, 2013

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

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.

Contributor

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?

Collaborator

mattr- commented Mar 26, 2013

See #212 (comment)

It's not open source, AFAIK

Contributor

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 commented Mar 26, 2013

What about Sundown?

Collaborator

mattr- commented Mar 26, 2013

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

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