mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-11 11:57:16 +00:00
a0bc3a574e
Multiline rows occur only when the *first* cell is empty; we were previously treating lines with *any* empty cell as row continuations. Closes #10093. In addition, we no longer wrap multiline cells in Para if they can be represented as Plain. This is consistent with docutils behavior.
838 B
838 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>1</td>
<td>Second column of row 1.</td>
</tr>
<tr>
<td>2</td>
<td>Second column of row 2. Second line of paragraph.</td>
</tr>
<tr>
<td>3</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>Row 4; column 1 will be empty.</td>
</tr>
</tbody>
</table>