mandoc (historically called mdocml) is a utility used for formatting man pages in BSD Operating Systems (e.g. NetBSD), specifically those written in the mdoc and man macro languages.
mandoc is mainly used to format the mdoc manuals used in the BSD Operating Systems, but it also implements most of the man macros used in Linux distributions, as well as a subset of roff commands occasionally intermixed with the man macros.
[2][1]: 1.14.5 It does not support other macro sets such as mm and ms, or any typesetting features like hyphenation, fonts and alignment.
[1]: 1.4.1 Development began in November 2008 specifically to produce CSS-enabled HTML forms of manuals in response to the limitations of groff.
[6][7][8] In summer of 2010, mandoc was the subject of a NetBSD-mentored Google Summer of Code project[9] for producing PostScript and PDF output alongside the existing text, HTML, and XHTML outputs.