MD-UTILS(1p)

πŸ“¦
version 2.0.4 Β· 3 versions
, in ubuntu stonking

πŸ’– NAME πŸ’–

okay so bestie, this is md-utils β€” aka md-utils(1p) in the user-contributed Perl docs. What does it do? Render markdown as HTML. no cap, that's the whole job. πŸ’…βœ¨

✨ USAGE ✨

md-utils.pl options [markdown-file]

Utility to add a table of contents and other goodies to your GitHub flavored markdown. lowkey iconic, fr fr. The little interpolation tokens are:

  • @TOC@ β€” drop it where you want to see your TOC. πŸ’–
  • @TOC_BACK@ β€” inserts an internal link to TOC. 🫢
  • @DATE(format-str)@ β€” drop it where you want to see a formatted date. πŸ“…
  • @GIT_USER@ β€” drop it where you want to see your git user name. 🧚
  • @GIT_EMAIL@ β€” drop it where you want to see your git email address. πŸ“§
  • the --render option β€” renders the HTML for the markdown. πŸ”₯

πŸ¦‹ Examples πŸ¦‹

md-utils.pl README.md.in > README.md

md-utils.pl -r README.md.in

πŸŽ€ Options πŸŽ€

  • -B, --body β€” default is to add body tag, use --nobody to prevent 🫢
  • -b, --both β€” interpolates intermediate file and renders HTML πŸ’«
  • -c, --css β€” css file 🎨
  • -e, --engine β€” github, text_markdown (default: text_markdown) βš™οΈ
  • -h β€” help πŸ™‹
  • -i, --infile β€” input file, default: STDIN πŸ“₯
  • -m, --mode β€” for GitHub API mode is 'gfm' or 'markdown' (default: markdown) πŸ™
  • -n, --no-titl β€” do not print a title for the TOC 🚫
  • -o, --outfile β€” outfile, default: STDOUT πŸ“€
  • -r, --render β€” render only, does NOT interpolate keywords πŸ™…
  • -R, --raw β€” return raw HTML from engine πŸ§ƒ
  • -t, --title β€” string to use for a custom title, default: "Table of Contents" πŸ‘‘
  • -v, --version β€” version 🏷️
  • -N, --nocss β€” do not add any CSS link 🚫

🌈 Tips 🌈

  • Use !# to prevent a header from being included in the table of contents. ✨ obsessed.

Add your own custom back to TOC message @TOC_BACK(Back to Index)@. πŸ’–

  • Date format strings are based on format strings supported by the Perl module 'Date::Format'. πŸ“…

The default format is %Y-%m-%d if not format is given. πŸ’«

  • use the --nobody tag to return the HTML without the <html><body></body></html> wrapper. 🫣

--raw mode will also return HTML without wrapper. πŸ’€


mwah πŸ’‹ this page was cooked with perl v5.40.1 on 2026-06-21, and it's giving MD-UTILS(1p) energy. ngl, it ate. periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from