mirror of
https://github.com/jgm/pandoc.git
synced 2026-10-01 19:57:42 +00:00
The overall table width used `round` while individual column widths (in colSpecListToHtml) used `truncate`, so the table width could exceed the sum of the column widths. Update test goldens. Co-Authored-By: Claude <noreply@anthropic.com>
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:41%;">
<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>