Files
pandoc/test/command/3494.md
ThomasSoeiro cd15313216 Don't emit unnecessary classes in HTML tables (#9376)
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.
2024-06-07 12:15:40 -07:00

41 lines
982 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
```
% pandoc -f latex --quiet
\begin{table}[h!]
\begin{tabular}{r|l|l}
{\large \textbf{}} && \\
\textbf{ﺄﺤﺴﻨﺘـ(ﻭﺍ) IV} & \em{ʾaḥsant(ū)} & thank you \\
\newpage
\emph{blah} & \emph{blah} & \emph{blah} \\
blah & blah & blah \\
\end{tabular}
\end{table}
^D
<table>
<tbody>
<tr>
<td style="text-align: right;"><span><strong></strong></span></td>
<td style="text-align: left;"></td>
<td style="text-align: left;"></td>
</tr>
<tr>
<td style="text-align: right;"><strong>ﺄﺤﺴﻨﺘـ(ﻭﺍ) IV</strong></td>
<td style="text-align: left;"><em><span>ʾaḥsant(ū)</span></em></td>
<td style="text-align: left;">thank you</td>
</tr>
<tr>
<td style="text-align: right;"><em>blah</em></td>
<td style="text-align: left;"><em>blah</em></td>
<td style="text-align: left;"><em>blah</em></td>
</tr>
<tr>
<td style="text-align: right;">blah</td>
<td style="text-align: left;">blah</td>
<td style="text-align: left;">blah</td>
</tr>
</tbody>
</table>
```