diff options
| author | Albert Krewinkel <[email protected]> | 2023-03-01 12:15:48 +0100 |
|---|---|---|
| committer | Albert Krewinkel <[email protected]> | 2023-03-01 12:20:47 +0100 |
| commit | c8147fc58354e9fdf117240efc79801b6b5d3658 (patch) | |
| tree | 255de9d1254a13d2994971e35bbc72c61004108a /test/command | |
| parent | 5ef944a0061c446bd5741e6a7727946966517e12 (diff) | |
Org reader: accept empty tables
Fixes: #8659
Diffstat (limited to 'test/command')
| -rw-r--r-- | test/command/8659.md | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/test/command/8659.md b/test/command/8659.md new file mode 100644 index 000000000..4721e1909 --- /dev/null +++ b/test/command/8659.md @@ -0,0 +1,54 @@ +# A single pipe is parsed as an empty table +``` +% pandoc -f org -t html +| +^D +<table> +<tbody> +<tr class="odd"> +</tr> +</tbody> +</table> +``` +# Accepts an empty org table within a grid table cell + +The misaligned pipe in the first row is treated as an empty table. + +``` +% pandoc -f org -t html ++-----+-----+-----+-----------+ +| | | | | ++:====+=====+====:+==========:+ +| a | b | c | d | ++-----+-----+-----+-----------+ +^D +<table style="width:42%;"> +<colgroup> +<col style="width: 8%" /> +<col style="width: 8%" /> +<col style="width: 8%" /> +<col style="width: 16%" /> +</colgroup> +<thead> +<tr class="header"> +<th style="text-align: left;"></th> +<th></th> +<th style="text-align: right;"></th> +<th style="text-align: right;"><table> +<tbody> +<tr class="odd"> +</tr> +</tbody> +</table></th> +</tr> +</thead> +<tbody> +<tr class="odd"> +<td style="text-align: left;">a</td> +<td>b</td> +<td style="text-align: right;">c</td> +<td style="text-align: right;">d</td> +</tr> +</tbody> +</table> +``` |
