mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 17:20:47 +08: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.
55 lines
950 B
Markdown
55 lines
950 B
Markdown
# A single pipe is parsed as an empty table
|
|
```
|
|
% pandoc -f org -t html
|
|
|
|
|
^D
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
```
|
|
# Accepts an empty org table within a grid table cell
|
|
|
|
The misaligned pipe in the first row is treated as an empty table.
|
|
|
|
```
|
|
% pandoc -f org -t html
|
|
+-----+-----+-----+-----------+
|
|
| | | | |
|
|
+:====+=====+====:+==========:+
|
|
| a | b | c | d |
|
|
+-----+-----+-----+-----------+
|
|
^D
|
|
<table style="width:42%;">
|
|
<colgroup>
|
|
<col style="width: 8%" />
|
|
<col style="width: 8%" />
|
|
<col style="width: 8%" />
|
|
<col style="width: 16%" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th style="text-align: left;"></th>
|
|
<th></th>
|
|
<th style="text-align: right;"></th>
|
|
<th style="text-align: right;"><table>
|
|
<tbody>
|
|
<tr>
|
|
</tr>
|
|
</tbody>
|
|
</table></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td style="text-align: left;">a</td>
|
|
<td>b</td>
|
|
<td style="text-align: right;">c</td>
|
|
<td style="text-align: right;">d</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
```
|