mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-28 18:35:49 +00:00
This allows to specify a table foot by enclosing it with part separator
lines, i.e., row separator lines consisting only of `+` and `=`
characters. E.g.:
+------+-------+
| Item | Price |
+======+=======+
| Eggs | 5£ |
+------+-------+
| Spam | 3£ |
+======+=======+
| Sum | 8£ |
+======+=======+
The last row, containing "Sum" and "8£", is the table foot.
Closes: #8257
42 lines
565 B
Markdown
42 lines
565 B
Markdown
```
|
|
% pandoc -f markdown -t html5
|
|
+------+-------+
|
|
| Item | Price |
|
|
+======+=======+
|
|
| Eggs | 5£ |
|
|
+------+-------+
|
|
| Spam | 3£ |
|
|
+======+=======+
|
|
| Sum | 8£ |
|
|
+======+=======+
|
|
^D
|
|
<table style="width:21%;">
|
|
<colgroup>
|
|
<col style="width: 9%" />
|
|
<col style="width: 11%" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr class="header">
|
|
<th>Item</th>
|
|
<th>Price</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr class="odd">
|
|
<td>Eggs</td>
|
|
<td>5£</td>
|
|
</tr>
|
|
<tr class="even">
|
|
<td>Spam</td>
|
|
<td>3£</td>
|
|
</tr>
|
|
</tbody><tfoot>
|
|
<tr class="odd">
|
|
<td>Sum</td>
|
|
<td>8£</td>
|
|
</tr>
|
|
</tfoot>
|
|
|
|
</table>
|
|
```
|