pandoc/test/command/7919.md
John MacFarlane 85136b064f 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.
2022-02-13 13:06:49 -08:00

750 B

% 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>