View Single Post
Old 12-06-2024, 03:06 AM   #17
Shohreh
Addict
Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.
 
Posts: 207
Karma: 304158
Join Date: Jan 2016
Location: France
Device: none
Quote:
Originally Posted by Kurler View Post
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
Shohreh is offline   Reply With Quote