MKD2MAN(1)

πŸ’– MKD2MAN(1) β€” the general commands manual, but make it cute πŸ’–

okay bestie, so this is mkd2man, from the General Commands Manual section, and she is literally the glow-up artist of the manual page world 🌸


✨ NAME ✨

mkd2man β€” convert a markdown document into an mdoc manual page


πŸŽ€ SYNOPSIS πŸŽ€

mkd2man [-h] [-d date] [-s section] [-t title] [file]

πŸ¦‹ DESCRIPTION πŸ¦‹

so the mkd2man utility reads file and generates mdoc(7) input from markdown source. that's the whole vibe. ✨

and if you don't specify a file? no worries bestie, it just takes standard input instead. flexible queen πŸ’…

The options are as follows:

  • -d, --date β€” sets the document date (Dd) to date. and pls, the manpage says preferrably in "Month Day, Year" format β€” yes that typo is in the original, we keep it, it's iconic. πŸ™ˆ If unspecified, mkd2man uses the file modification date, or the current date if reading is from standard input or if stat(2) fails.
  • -h, --help β€” displays help text. simple. slay.
  • -s, --section β€” sets the document section (Dt) to section. If unspecified, mkd2man uses 1.
  • -t, --title β€” sets the document title (Dt) to title. If unspecified, mkd2man uses the suffix-stripped filename part of file.
⚠️ okay but real talk: when reading is from stdin, the title must be specified. no title, no entry, no exceptions, periodt. πŸ’€

πŸ”₯ EXIT STATUS πŸ”₯

The mkd2man utility exits 0 on success, and >0 if an error occurs.


🌈 SEE ALSO 🌈

mkd2html(1), mkd2latex(1), mdoc(7)


πŸ‘‘ AUTHORS πŸ‘‘

mkd2man was written by Natasha "Kerensikova" Porte <natacha@instinctive.eu> and Baptiste Daroussin <bapt@freebsd.org>.

Manual page was originally written by Massimo Manghi <mxmanghi@apache.org>, and rewritten to mdoc format by Svyatoslav Mishyn <juef@openmailbox.org>.


and that's a wrap, bestie πŸ’– this one came to you from Debian, dated March 30, 2016 β€” yes she's a lil vintage, but vintage is a vibe, okurrr? πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from