<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEdocument SYSTEM "CommonMark.dtd"><documentxmlns="http://commonmark.org/xml/1.0"><grid_tablealignments="none none"widths="3 3"><grid_table_rowsection="head"><grid_table_cellcolumn="0"colspan="1"rowspan="1"><paragraph><textxml:space="preserve">a</text></paragraph></grid_table_cell><grid_table_cellcolumn="1"colspan="1"rowspan="1"><paragraph><textxml:space="preserve">b</text></paragraph></grid_table_cell></grid_table_row><grid_table_rowsection="body"><grid_table_cellcolumn="0"colspan="1"rowspan="1"><paragraph><textxml:space="preserve">c</text></paragraph></grid_table_cell><grid_table_cellcolumn="1"colspan="1"rowspan="1"><paragraph><textxml:space="preserve">d</text></paragraph></grid_table_cell></grid_table_row></grid_table></document>
$ comrak -e grid-table -t commonmark -t xml
+---+---+---+
| AAAAA | B |
+---+---+ B +
| D | E | B |
+D +---+---+
| D | CCCCC |
+---+---+---+
AAAAA
B
B
B
D
D
D
E
CCCCC
<table><tbody><tr><tdcolspan="2">AAAAA</td><tdrowspan="2">B
B
B</td></tr><tr><tdrowspan="2">D
D
D</td><td>E</td></tr><tr><tdcolspan="2">CCCCC</td></tr></tbody></table>
+-------+---+
| AAAAA | B |
+---+---+ B |
| D | E | B |
| D +---+---+
| D | CCCCC |
+---+-------+
<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEdocument SYSTEM "CommonMark.dtd"><documentxmlns="http://commonmark.org/xml/1.0"><grid_tablealignments="none none none"widths="3 3 3"><grid_table_rowsection="body"><grid_table_cellcolumn="0"colspan="2"rowspan="1"><paragraph><textxml:space="preserve">AAAAA</text></paragraph></grid_table_cell><grid_table_cellcolumn="2"colspan="1"rowspan="2"><paragraph><textxml:space="preserve">B</text><softbreak/><textxml:space="preserve">B</text><softbreak/><textxml:space="preserve">B</text></paragraph></grid_table_cell></grid_table_row><grid_table_rowsection="body"><grid_table_cellcolumn="0"colspan="1"rowspan="2"><paragraph><textxml:space="preserve">D</text><softbreak/><textxml:space="preserve">D</text><softbreak/><textxml:space="preserve">D</text></paragraph></grid_table_cell><grid_table_cellcolumn="1"colspan="1"rowspan="1"><paragraph><textxml:space="preserve">E</text></paragraph></grid_table_cell></grid_table_row><grid_table_rowsection="body"><grid_table_cellcolumn="1"colspan="2"rowspan="1"><paragraph><textxml:space="preserve">CCCCC</text></paragraph></grid_table_cell></grid_table_row></grid_table></document>
$ comrak -e grid-table -t commonmark -t xml
+-------+-------+-------+
| Left | Right | Centre|
+:======+======:+:=====:+
| a | b | c |
+=======+=======+=======+
| foot | foot | foot |
+=======+=======+=======+
+-------+-------+-------+
| Left | Right | Centre|
+:======+======:+:=====:+
| a | b | c |
+=======+=======+=======+
| foot | foot | foot |
+=======+=======+=======+
<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEdocument SYSTEM "CommonMark.dtd"><documentxmlns="http://commonmark.org/xml/1.0"><grid_tablealignments="left right center"widths="7 7 7"><grid_table_rowsection="head"><grid_table_cellcolumn="0"colspan="1"rowspan="1"><paragraph><textxml:space="preserve">Left</text></paragraph></grid_table_cell><grid_table_cellcolumn="1"colspan="1"rowspan="1"><paragraph><textxml:space="preserve">Right</text></paragraph></grid_table_cell><grid_table_cellcolumn="2"colspan="1"rowspan="1"><paragraph><textxml:space="preserve">Centre</text></paragraph></grid_table_cell></grid_table_row><grid_table_rowsection="body"><grid_table_cellcolumn="0"colspan="1"rowspan="1"><paragraph><textxml:space="preserve">a</text></paragraph></grid_table_cell><grid_table_cellcolumn="1"colspan="1"rowspan="1"><paragraph><textxml:space="preserve">b</text></paragraph></grid_table_cell><grid_table_cellcolumn="2"colspan="1"rowspan="1"><paragraph><textxml:space="preserve">c</text></paragraph></grid_table_cell></grid_table_row><grid_table_rowsection="foot"><grid_table_cellcolumn="0"colspan="1"rowspan="1"><paragraph><textxml:space="preserve">foot</text></paragraph></grid_table_cell><grid_table_cellcolumn="1"colspan="1"rowspan="1"><paragraph><textxml:space="preserve">foot</text></paragraph></grid_table_cell><grid_table_cellcolumn="2"colspan="1"rowspan="1"><paragraph><textxml:space="preserve">foot</text></paragraph></grid_table_cell></grid_table_row></grid_table></document>
<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEdocument SYSTEM "CommonMark.dtd"><documentxmlns="http://commonmark.org/xml/1.0"><grid_tablealignments="left right"widths="7 8"><grid_table_rowsection="body"><grid_table_cellcolumn="0"colspan="1"rowspan="1"><paragraph><textxml:space="preserve">a</text></paragraph></grid_table_cell><grid_table_cellcolumn="1"colspan="1"rowspan="1"><paragraph><textxml:space="preserve">b</text></paragraph></grid_table_cell></grid_table_row></grid_table></document>
<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEdocument SYSTEM "CommonMark.dtd"><documentxmlns="http://commonmark.org/xml/1.0"><grid_tablealignments="none none"widths="10 16"><grid_table_rowsection="head"><grid_table_cellcolumn="0"colspan="1"rowspan="1"><paragraph><textxml:space="preserve">Fruit</text></paragraph></grid_table_cell><grid_table_cellcolumn="1"colspan="1"rowspan="1"><paragraph><textxml:space="preserve">Advantages</text></paragraph></grid_table_cell></grid_table_row><grid_table_rowsection="body"><grid_table_cellcolumn="0"colspan="1"rowspan="1"><paragraph><textxml:space="preserve">Bananas</text></paragraph></grid_table_cell><grid_table_cellcolumn="1"colspan="1"rowspan="1"><listtype="bullet"tight="true"><item><paragraph><textxml:space="preserve">built-in</text><softbreak/><textxml:space="preserve">wrapper</text></paragraph></item><item><paragraph><textxml:space="preserve">bright color</text></paragraph></item></list></grid_table_cell></grid_table_row><grid_table_rowsection="body"><grid_table_cellcolumn="0"colspan="1"rowspan="1"><paragraph><textxml:space="preserve">Oranges</text></paragraph></grid_table_cell><grid_table_cellcolumn="1"colspan="1"rowspan="1"><code_blockxml:space="preserve">cures scurvy
</code_block><paragraph><textxml:space="preserve">Tasty.</text></paragraph></grid_table_cell></grid_table_row></grid_table></document>
$ comrak -e grid-table -t commonmark -t xml
-Inside a list item:
+---+
| a |
+---+
> +---+
> | b |
> +---+
Inside a list item:
a
b
<ul><li><p>Inside a list item:</p><table><tbody><tr><td>a</td></tr></tbody></table></li></ul><blockquote><table><tbody><tr><td>b</td></tr></tbody></table></blockquote>
-Inside a list item:
+---+
| a |
+---+
>> +---+
> | b |
> +---+
<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEdocument SYSTEM "CommonMark.dtd"><documentxmlns="http://commonmark.org/xml/1.0"><listtype="bullet"tight="false"><item><paragraph><textxml:space="preserve">Inside a list item:</text></paragraph><grid_tablealignments="none"widths="3"><grid_table_rowsection="body"><grid_table_cellcolumn="0"colspan="1"rowspan="1"><paragraph><textxml:space="preserve">a</text></paragraph></grid_table_cell></grid_table_row></grid_table></item></list><block_quote><grid_tablealignments="none"widths="3"><grid_table_rowsection="body"><grid_table_cellcolumn="0"colspan="1"rowspan="1"><paragraph><textxml:space="preserve">b</text></paragraph></grid_table_cell></grid_table_row></grid_table></block_quote></document>
$ comrak -e grid-table -t commonmark -t xml
+---+
| a |
+b +
+---+
| a |
b +
<p>+---+
| a |</p><ul><li>b +</li></ul>
\+---+
| a |
-b +
<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEdocument SYSTEM "CommonMark.dtd"><documentxmlns="http://commonmark.org/xml/1.0"><paragraph><textxml:space="preserve">+---+</text><softbreak/><textxml:space="preserve">| a |</text></paragraph><listtype="bullet"tight="true"><item><paragraph><textxml:space="preserve">b +</text></paragraph></item></list></document>
$ comrak -e grid-table -t commonmark -t xml
Not a table:
+---+
| a |
+---+
Not a table:
+---+
| a |
+---+
<p>Not a table:
+---+
| a |
+---+</p>
Not a table:
\+---+
| a |
\+---+
<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEdocument SYSTEM "CommonMark.dtd"><documentxmlns="http://commonmark.org/xml/1.0"><paragraph><textxml:space="preserve">Not a table:</text><softbreak/><textxml:space="preserve">+---+</text><softbreak/><textxml:space="preserve">| a |</text><softbreak/><textxml:space="preserve">+---+</text></paragraph></document>