mirror of
https://github.com/jgm/pandoc.git
synced 2026-10-04 13:17:58 +00:00
Remove old ad hoc `paraToPlain` at the table cell level. This should ensure that we don't get tables that mix Plain and Para. Such tables tend to look funny when rendered in docx and other formats. Closes #11864.
978 B
978 B
A single pipe is parsed as an empty table
% pandoc -f org -t html
|
^D
<table>
<tbody>
<tr>
</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>
<th style="text-align: left;"></th>
<th></th>
<th style="text-align: right;"></th>
<th style="text-align: right;"><table>
<tbody>
<tr>
</tr>
</tbody>
</table></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;"><p>a</p></td>
<td><p>b</p></td>
<td style="text-align: right;"><p>c</p></td>
<td style="text-align: right;"><p>d</p></td>
</tr>
</tbody>
</table>