Files
pandoc/test/command/1166.md
T
John MacFarlane 7cf4d41fe5 Use compactifyTable for tables produced by all readers.
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.
2026-09-12 20:02:41 -07:00

880 B

See #1166 and http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#simple-tables.

% pandoc -f rst -t html5
=====  =====
col 1  col 2
=====  =====
1      Second column of row 1.
2      Second column of row 2.
       Second line of paragraph.
3      - Second column of row 3.

       - Second item in bullet
         list (row 3, column 2).
\      Row 4; column 1 will be empty.
=====  =====
^D
<table>
<thead>
<tr>
<th>col 1</th>
<th>col 2</th>
</tr>
</thead>
<tbody>
<tr>
<td><p>1</p></td>
<td><p>Second column of row 1.</p></td>
</tr>
<tr>
<td><p>2</p></td>
<td><p>Second column of row 2. Second line of paragraph.</p></td>
</tr>
<tr>
<td><p>3</p></td>
<td><ul>
<li>Second column of row 3.</li>
<li>Second item in bullet list (row 3, column 2).</li>
</ul></td>
</tr>
<tr>
<td></td>
<td><p>Row 4; column 1 will be empty.</p></td>
</tr>
</tbody>
</table>