Closed
Description
It is currently not possible to prevent pandoc
from adding attributes to the HTML output from a Markdown input (e.g. .header
, .odd
, .even
in the ReprEx below). It is only possible to drop attributes using filters.
Since both the CommonMark and GitHub Flavored Markdown specs do not mention default attributes in HTML output, shouldn't this be opt-in by default? Or possible to opt-out at least?
ReprEx
Using e.g. this input:
| foo | bar |
| --- | --- |
| baz | bim |
| baz | bim |
And converting to HTML using pandoc --from gfm --to html5
, we get:
<table>
<thead>
<tr class="header">
<th>foo</th>
<th>bar</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>baz</td>
<td>bim</td>
</tr>
<tr class="even">
<td>baz</td>
<td>bim</td>
</tr>
</tbody>
</table>