Files
Meher Chaitanya 1ffeb856ee Add auto_identifiers support to Man Reader (#11675)
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.
2026-05-30 19:11:14 +02:00

846 B

% pandoc -f man -t html
TH "TEST" "1" "2026-05-25" "test v1.0.0" "test manual"
.SH HEADING
.TP 4
This is the unindented tag.
This text, along with the table, should be indented.
.TS
tab(;);
l l.
aaa;bbb
ccc;ddd
.TE
This should still be indented, until some other macro is called to change it.
.PP
Like this.
^D
<p>TH "TEST" "1" "2026-05-25" "test v1.0.0" "test manual"</p>
<h1 id="heading">HEADING</h1>
<dl>
<dt>This is the unindented tag.</dt>
<dd>
<p>This text, along with the table, should be indented.</p>
<table>
<tbody>
<tr>
<td style="text-align: left;">aaa</td>
<td style="text-align: left;">bbb</td>
</tr>
<tr>
<td style="text-align: left;">ccc</td>
<td style="text-align: left;">ddd</td>
</tr>
</tbody>
</table>
<p>This should still be indented, until some other macro is called to
change it.</p>
</dd>
</dl>
<p>Like this.</p>