Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autolink_bare_uris when converting from a man page #10566

Open
acuteenvy opened this issue Jan 25, 2025 · 0 comments
Open

autolink_bare_uris when converting from a man page #10566

acuteenvy opened this issue Jan 25, 2025 · 0 comments

Comments

@acuteenvy
Copy link

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant