mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-11 03:47:20 +00:00
cd15313216
Pandoc used to emit a `header` class on the `tr` element that forms the table header. This is no longer needed, because `head > tr` will do the same thing. Similarly, pandoc used to emit `even` and `odd` classes on `tr`s, allowing striped styling. This is no longer needed, because one can use e.g. `tbody tr:nth-child(2n)`. We now omit these classes, which have a good chance of conflicting with classes used for other things. Closes #9325.
1.1 KiB
1.1 KiB
% pandoc -t html5
::: {.div-class}
+-------+-----+-----+-------------------------------------------------+
| Col 1 | Col | Col | Col 4 |
| | 2 | 3 | |
+:=====:+:===:+:===:+:================================================+
| High | Med | Med | Some description of something. |
+-------+-----+-----+-------------------------------------------------+
:::
^D
<div class="div-class">
<table style="width:97%;">
<colgroup>
<col style="width: 11%" />
<col style="width: 8%" />
<col style="width: 8%" />
<col style="width: 69%" />
</colgroup>
<thead>
<tr>
<th style="text-align: center;">Col 1</th>
<th style="text-align: center;">Col 2</th>
<th style="text-align: center;">Col 3</th>
<th style="text-align: left;">Col 4</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">High</td>
<td style="text-align: center;">Med</td>
<td style="text-align: center;">Med</td>
<td style="text-align: left;">Some description of something.</td>
</tr>
</tbody>
</table>
</div>