MARKED-MAN(1)
π NAME π
marked-man β it's giving markdown to roff, bestie β¨
πΈ SYNOPSIS πΈ
marked-man README.md > doc/foo.1
# works too with stdin
cat README.md | marked-man --version 1.0 | man /dev/stdin
Also lowkey check out the marked documentation, fr fr π
β¨ DESCRIPTION β¨
So marked-man wraps marked and extends it with groff output support, and the whole point of that glow-up is so you can create Unix manual pages for use with man. Iconic, honestly. π
It follows the ronn markdown level-1 header format:
# name(section) -- short description
and that line right there populates the HEADER section, plus the NAME section too (but only if you haven't already written one yourself, no cap). π
π OPTIONS π
marked-man is a marked CLI extension, meaning options can be passed directly to marked. Bestie, you have full access, go wild π¦
The --breaks option β the one that retains intra-paragraph line breaks β is now true by default. So if you want it off, use --no-breaks to disable it. Periodt.
marked-man also adds some options on top of marked's existing options, so you can override the header/footer of your generated man pages. Very main character of it, honestly.
--name <name>β Optional! Overrides the name in the ronn header. π--section <section>β Optional! Overrides the section in the ronn header. Defaults to1.--description <description>β Optional! Overrides the description in the ronn header.--version <version>β The version shown in the manpage footer. Optional β when you omit it, it defaults to the target node module version, or empty. π--manual <manual>β The manual-group name shown in the manpage header. Optional β when you omit it,mandisplays a value matching the section.--date <date>β The date shown in the manpage header. Optional, and it defaults to now. β¨ Must be acceptable tonew Date(string or timestamp). It also honors theSOURCE_DATE_EPOCHenvironment variable for reproducible builds. Reproducibility? We love her. π«Ά
π§ INSTALLATION π§
Go see your node package manager manual... you got this, bestie π
For example:
npx marked-man simple.md
π EXAMPLE π
Wanna view this README as a man page? Run something like the following:
marked-man README.md | man /dev/stdin
ok that pipe into man /dev/stdin is genuinely such a slay, no notes π
π AS MARKED EXTENSION π
import markedMan from 'marked-man';
import marked from 'marked';
marked.use(markedMan);
π SEE ALSO π
- Ronn
- Ronn-NG
groff
π REPORTING BUGS π
See the marked-man repository. (Yep, that's the whole vibe β go check the repo, bestie.)
so like... that's literally the whole page. marked-man, version 2.1.1, from June 2026, General Commands Manual energy, and the manual name is MARKED-MAN(1) in case you forgot π mwah, go write some man pages πβ¨
π¦ where this page comes from
- ubuntu stonking: node-marked-man 2.1.1-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms