MD-UTILS(1p)
π 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
--renderoption β 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--nobodyto 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
--nobodytag 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
- ubuntu stonking: libmarkdown-render-perl 2.0.4-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms