marked-man v2.1.0
marked-man(1) -- markdown to roff
SYNOPSIS
marked-man README.md > doc/foo.1
# works too with stdin
cat README.md | marked-man --version 1.0 | man /dev/stdinSee also marked documentation.
DESCRIPTION
marked-man wraps marked to extend it with groff output support in order to
create Unix manual pages for use with man.
It follows the ronn markdown level-1 header format:
# name(section) -- short descriptionwhich populates the HEADER section, and the NAME section (if none is already written) of the manpage.
OPTIONS
marked-man is a marked CLI extension, meaning options can be passed directly to marked.
The --breaks option, which retains intra-paragraph line breaks, is now true by default. Use --no-breaks to disable it.
marked-man adds some options to marked's existing options, to be able to override the header/footer of generated man pages.
--name <name>Optional, overridesnamein ronn header.--section <section>Optional, overridessectionin ronn header. Defaults to 1.--description <description>Optional, overridesdescriptionin ronn header.--version <version>The version shown in the manpage footer. Optional, when omitted, defaults to the target node module version, or empty.--manual <manual>The manual-group name shown in the manpage header. Optional, when omitted, man displays a value matching the section.--date <date>The date shown in the manpage header. Optional, defaults to now. Must be acceptable tonew Date(string or timestamp). HonorsSOURCE_DATE_EPOCHenvironment variable for reproducible builds.
INSTALLATION
See your node package manager manual...
For example:
npx marked-man simple.mdEXAMPLE
To view this README as a man page, run something like the following:
marked-man README.md | man /dev/stdinAS MARKED EXTENSION
import markedMan from 'marked-man';
import marked from 'marked';
marked.use(markedMan);SEE ALSO
REPORTING BUGS
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
9 years ago
9 years ago
9 years ago
10 years ago
11 years ago
11 years ago
11 years ago
12 years ago
12 years ago
12 years ago
12 years ago