mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-04 22:55:43 +00:00
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.
54 lines
540 B
Markdown
54 lines
540 B
Markdown
```
|
|
% 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 & no</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
```
|