mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-01 13:15:51 +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.
43 lines
846 B
Markdown
43 lines
846 B
Markdown
```
|
|
% 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>
|
|
|
|
```
|