1f69162ffd
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.
51 lines
1.6 KiB
Markdown
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
|
|
```
|