Quote:
Originally Posted by Kurler
No, “mandoc” is not the same thing as “groff -mandoc”. Both tools can convert manpages to HTML, but they are different programs written by different authors and produce different HTML. “groff -mandoc” refers to the input filetypes it supports (the two common manpage languages “man” and “mdoc”), as does the program name “mandoc,” but they’re not otherwise related. mandoc’s HTML is better quality, making it the tool of choice for this job.
|
Are you sure about that? I was under the impression that groff uses the mandoc(1) program or code when the -mandoc switch is used. I do know that standalone mandoc on BSD is designed specifically and only for man pages where groff and other roff-alikes are general purpose markup parsers, so if groff isn't using mandoc(1) then that would be a reason for the differences.