diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2022-02-13 13:06:49 -0800 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2022-02-13 13:06:49 -0800 |
| commit | 85136b064fa014a33960b4b34af6de80804db2dc (patch) | |
| tree | b7b66b5b03a2f541d73532987fcdd1d9e4a80138 /test/command | |
| parent | 495ae605e3238d02a7e5e3b5be6a43b50ce5e492 (diff) | |
Markdown reader: allow one-column pipe tables with pipe on right.
See #7919.
We still need to implement this for gfm (commonmark).
This must be done via changes in commonmark-hs.
Diffstat (limited to 'test/command')
| -rw-r--r-- | test/command/7919.md | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/test/command/7919.md b/test/command/7919.md new file mode 100644 index 000000000..f7ff9853b --- /dev/null +++ b/test/command/7919.md @@ -0,0 +1,59 @@ +``` +% pandoc -f markdown +single column table | +------------------- | +item 1 | +item 2 | +^D +<table> +<thead> +<tr class="header"> +<th>single column table</th> +</tr> +</thead> +<tbody> +<tr class="odd"> +<td>item 1</td> +</tr> +<tr class="even"> +<td>item 2</td> +</tr> +</tbody> +</table> +``` + +``` +% pandoc -f markdown +| single column table +| ------------------- +| item 1 +| item 2 +^D +<table> +<thead> +<tr class="header"> +<th>single column table</th> +</tr> +</thead> +<tbody> +<tr class="odd"> +<td>item 1</td> +</tr> +<tr class="even"> +<td>item 2</td> +</tr> +</tbody> +</table> +``` + +``` +% pandoc -f markdown +single column table +------------------- +item 1 +item 2 +^D +<h2 id="single-column-table">single column table</h2> +<p>item 1 item 2</p> +``` + |
