mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-03 06:05:45 +00:00
Add support for the `auto_identifiers`, `gfm_auto_identifiers`, and `ascii_identifiers` extensions in the man reader. Section headings parsed from .SH and .SS macros now receive auto-generated id attributes when the extension is enabled, enabling `--toc` to produce working anchor links. - Add `autoIdExtensions` to default man extensions [behavior change] - Add `HasReaderOptions`, `HasLogMessages` and `HasIdentifierList` to `ManState` to run `registerHeader` Closes #8852.
29 lines
499 B
Markdown
29 lines
499 B
Markdown
```
|
|
% pandoc -f man -t html
|
|
.TH "TEST" "1" "2026-05-08" "test v1.0.0" "test manual"
|
|
.SH HEADING
|
|
.TS
|
|
tab(;);
|
|
l l.
|
|
this is a table element \
|
|
written in two lines;abcdefg
|
|
another \
|
|
one;123456
|
|
.TE
|
|
^D
|
|
<h1 id="heading">HEADING</h1>
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<td style="text-align: left;">this is a table element written in two
|
|
lines</td>
|
|
<td style="text-align: left;">abcdefg</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="text-align: left;">another one</td>
|
|
<td style="text-align: left;">123456</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
```
|