mandoc
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. Unlike the groff and older troff and nroff tools that are predominantly used for this purpose by tools such as man
, mandoc focuses specifically on manuals and is not suitable for general-purpose type-setting.
Initial release | November 2008 |
---|---|
Stable release | 1.14.6
/ September 23, 2021 |
Repository | |
Written in | C |
Type | Typesetting |
License | ISC license |
Website | mandoc |
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.: 1.14.5 It does not support other macro sets such as mm and ms, or any typesetting features like hyphenation, fonts and alignment.: compatibility Simple styling such as bold and italics are supported, but italicized text is replaced by underlined text on the terminal.
mandoc has built-in support for the troff soelim (inclusion) preprocessor and partial built-in support for tbl and eqn. It has strong support for UTF-8 output. It can also use the semantic information in mdoc manuals to implement semantic search, which before version 1.4.1, relied on sqlite.: 1.4.1