Skip to content

autolink_bare_uris when converting from a man page #10566

@acuteenvy

Description

@acuteenvy

Describe your proposed improvement and the problem it solves.
Man pages sometimes contain links to websites. When the man page is converted to html, pandoc does not create hyperlinks in the resulting html.

input.1:

.TH "TEST" "1" "2025-01-25"  "test" "test manual"
.SH HEADING
Pandoc's website: https://pandoc.org
$ pandoc --to html input.1
<h1>HEADING</h1>
<p>Pandoc's website: https://pandoc.org</p>

Would it be possible for the autolink_bare_uris extension to work with the man reader?

Describe alternatives you've considered.
Workaround: first convert man to markdown and then markdown to html.

$ pandoc --to markdown input.1 | pandoc --from markdown+autolink_bare_uris --to html
<h1 id="heading">HEADING</h1>
<p>Pandoc's website: <a href="https://pandoc.org"
class="uri">https://pandoc.org</a></p>

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions