docscii icon indicating copy to clipboard operation
docscii copied to clipboard

Add support for AsciiDoc formatting inside a table cell

Open fbolton opened this issue 7 years ago • 1 comments

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 avatar Mar 12 '17 08:03 fbolton