Files
pandoc/test/command/7847.md
T
John MacFarlane 49df8131a5 Markdown writer: don't try to align columns in pipe tables...
...with lines greater than COLUMNS.

The alignment just reduces readibility when the lines soft wrap.
2024-04-25 14:26:17 -07:00

1.7 KiB

% pandoc -f html -t markdown_strict+pipe_tables
<table>
<colgroup>
<col style="width: 20%" />
<col style="width: 60%" />
<col style="width: 20%" />
</colgroup>
<thead>
<tr class="header">
<th>aaa</th>
<th>bbb</th>
<th>ccc</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>Consequat nisi sit amet nibh. Nunc mi tortor, tristique
sit amet, rhoncus porta, malesuada elementum, nisi.</td>
<td></td>
<td>ccc</td>
</tr>
</tbody>
</table>
^D
| aaa | bbb | ccc |
|---------------|------------------------------------------|---------------|
| Consequat nisi sit amet nibh. Nunc mi tortor, tristique sit amet, rhoncus porta, malesuada elementum, nisi. |  | ccc |

% pandoc -f html -t markdown_strict+pipe_tables
<table>
<tr>
<th>aaa</th>
<th>bbb</th>
<th>ccc</th>
</tr>
<tr>
<td>Consequat nisi sit amet nibh. Nunc mi tortor, tristique
sit amet, rhoncus porta, malesuada elementum, nisi.</td>
<td></td>
<td>ccc</td>
</tr>
</table>
^D
| aaa | bbb | ccc |
|----|----|----|
| Consequat nisi sit amet nibh. Nunc mi tortor, tristique sit amet, rhoncus porta, malesuada elementum, nisi. |  | ccc |

% pandoc -f html -t commonmark+pipe_tables
<table>
<colgroup>
<col style="width: 20%" />
<col style="width: 60%" />
<col style="width: 20%" />
</colgroup>
<thead>
<tr class="header">
<th>aaa</th>
<th>bbb</th>
<th>ccc</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>Consequat nisi sit amet nibh. Nunc mi tortor, tristique
sit amet, rhoncus porta, malesuada elementum, nisi.</td>
<td>bbb</td>
<td>ccc</td>
</tr>
</tbody>
</table>
^D
| aaa | bbb | ccc |
|----|----|----|
| Consequat nisi sit amet nibh. Nunc mi tortor, tristique sit amet, rhoncus porta, malesuada elementum, nisi. | bbb | ccc |