pandoc/test/command/7713.md
John MacFarlane 79e6f8db13 Improve detection of pipe table line widths.
Fixed calculation of maximum column widths in pipe tables.
It is now based on the length of the markdown line, rather
than a "stringified" version of the parsed line.  This should
be more predictable for users. In addition, we take into account
double-wide characters such as emojis.

Closes #7713.
2021-11-23 13:29:25 -08:00

656 B

% pandoc
| aaaaaaaaaaaa | bbbbb | ccccccccccc                                                       |
| ---          | ---   | ---                                                               |
|              |       | cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc |
^D
<table>
<colgroup>
<col style="width: 33%" />
<col style="width: 33%" />
<col style="width: 33%" />
</colgroup>
<thead>
<tr class="header">
<th>aaaaaaaaaaaa</th>
<th>bbbbb</th>
<th>ccccccccccc</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td></td>
<td></td>
<td>cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc</td>
</tr>
</tbody>
</table>