Quote:
Originally Posted by Kurler
I recommend using the program “mandoc” ( https://mandoc.bsd.lv/) to convert a manpage from source to HTML. It was designed from the start specifically as a manpage-to-HTML converter, so it does a better job of realizing semantics from the manpage, resulting in better quality HTML than pandoc or groff.
|
Thanks for the info. I'll try it next time.
Code:
mandoc -Thtml /usr/share/man/man1/ls.1.gz > ls.html
Turns out pandoc supports man pages too:
Code:
pandoc --from man --to html < input.1 > output.html