pandoc/test/command/5899.md
John MacFarlane 1f69162ffd RST writer: Improve spacing for tables with no width information.
If a simple table would be too wide, we use a grid table.
The code for generating grid tables has been adjusted to
give more intelligent column widths when widths aren't
given. (This also affects the markdown writer.)

Closes #5899.
2019-11-15 23:09:53 -08:00

51 lines
1.6 KiB
Markdown

```
% pandoc -f html -t rst
<html>
<body>
<ul>
<li>A list of stuff with a table inside
<table>
<thead>
<tr>
<th>First</th><th>Second</th><th>Third</th>
</tr>
</thead>
<tbody>
<tr>
<td>First</td>
<td>
The big long table cell.
The big long table cell.
The big long table cell.
The big long table cell.
The big long table cell.
The big long table cell.
The big long table cell.
The big long table cell.
The big long table cell.
The big long table cell.
</td>
<td>Third</td>
</tr>
</tbody>
</table>
</li>
<li>Another list item</li>
</ul>
</body>
</html>
^D
- A list of stuff with a table inside
+-------+----------------------------------------------------+-------+
| First | Second | Third |
+=======+====================================================+=======+
| First | The big long table cell. The big long table cell. | Third |
| | The big long table cell. The big long table cell. | |
| | The big long table cell. The big long table cell. | |
| | The big long table cell. The big long table cell. | |
| | The big long table cell. The big long table cell. | |
+-------+----------------------------------------------------+-------+
- Another list item
```