Files
John MacFarlane a0bc3a574e RST reader: improve simple table support.
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.
2024-08-29 10:41:52 -07:00

540 B

% pandoc -f rst
========== ====
Function   1   
========== ====
a          yes 
b              
========== ====
^D
<table>
<thead>
<tr>
<th>Function</th>
<th>1</th>
</tr>
</thead>
<tbody>
<tr>
<td>a</td>
<td>yes</td>
</tr>
<tr>
<td>b</td>
<td></td>
</tr>
</tbody>
</table>
% pandoc -f rst
========== ====
Function   1   
========== ====
a          yes 
           & no
========== ====
^D
<table>
<thead>
<tr>
<th>Function</th>
<th>1</th>
</tr>
</thead>
<tbody>
<tr>
<td>a</td>
<td>yes &amp; no</td>
</tr>
</tbody>
</table>