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 AsciiDoc formatting inside a table cell #6

Open
fbolton opened this issue Mar 12, 2017 · 1 comment
Open

Add support for AsciiDoc formatting inside a table cell #6

fbolton opened this issue Mar 12, 2017 · 1 comment

Comments

@fbolton
Copy link

fbolton commented Mar 12, 2017

Need to treat header cells and ordinary cells differently, because we need to use a special syntax to enable AsciiDoc formatting inside an ordinary cell. To use AsciiDoc formatting, you need to delimit the cell by starting with a| and ending with a newline, \n. In other words, instead of formating a table like this:

|===
|Header 1|Header 2|

|Foo|Bar
|===

It should be formatted like this:

|===
|Header 1|Header 2|

a|Foo
a|Bar

|===

And then it becomes possible to put fancy formatting inside the table cell (lists, code listings, etc.)

@fbolton
Copy link
Author

fbolton commented Mar 12, 2017

This is a pretty easy fix and I have a fix that appears to work well. Will submit as a patch shortly.

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

No branches or pull requests

1 participant