I'm looking for a tool for converting groff ms documents to HTML.

In particular, I would like the generated HTML to produce hyperlinks from each entry in the Table of Contents to the section in the page, and hyperlinks from references in the text to their entries in the bibliography. However, these are not hard requirements.

(FYI, I already looked at pandoc. pandoc supports converting to roff ms, but not from roff ms, which is what I want.)


1 Answer 1


It turns out I just failed to look in the man page for groff.

groff can be converted to HTML or XHTML by using the -T option: -T html for HTML output, and -T xhtml for XHTML output.

This will work for all groff macros, not just the ms macros.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.