cmark-gfm(1)
π cmark-gfm β the group-chat guide π
okay so bestie, you found the cmark-gfm page in the General Commands Manual and I'm literally so glad you're here π«Ά this is the tool that takes your Markdown and turns it into fancy output, and honestly? it's giving main character energy. let's get into it.
β¨ NAME β¨
cmark β converts CommonMark formatted text (with those GitHub Flavored Markdown extensions, iykyk) into HTML π
πΈ SYNOPSIS πΈ
cmark-gfm [options] file*
π¦ DESCRIPTION π¦
cmark-gfm takes Markdown formatted plain text and converts it to HTML, groff man, CommonMark XML, LaTeX, or CommonMark, following the conventions laid out in the CommonMark spec β¨
It reads input from stdin or from the files you name β and bestie, it concatenates their contents, so yes, multiple files are a vibe π β and it writes the output to stdout.
π OPTIONS π
okay this is the part you actually came for, no cap π
--to,-tFORMAT β tell it what you want out the other side:html,man,xml,latex, orcommonmark. pick your fighter β--widthWIDTH β set a column width for wrapping the output π§ and for no wrapping at all, use the value0(that's the default, she's lowkey chill by nature). heads up though: this option currently only affects thecommonmark,latex, andmanrenderers π--hardbreaksβ renders soft breaks (those sneaky newlines inside paragraphs in your CommonMark source) as hard line breaks in the target format π₯ but if you use this, hard wrapping is disabled for CommonMark output, regardless of whatever value you gave--width. she said pick a lane π--nobreaksβ the opposite vibe: renders soft breaks as spaces β¨ and if you specify this one, hard wrapping is disabled for all output formats, regardless of the value given with--width. periodt π--sourceposβ include the source position attribute π―--normalizeβ consolidate adjacent text nodes π§Ή (decluttering, we love to see it)--extension,-eEXTENSION_NAME β specify an extension name to use π¦--list-extensionsβ list all the available extensions and then quit π (like a little menu, bestie)--validate-utf8β validate UTF-8, replacing illegal sequences withU+FFFDπ--smartβ use smart punctuation π straight double and single quotes get rendered as curly quotes, depending on their position.--becomes an en-dash,---becomes an em-dash, and...becomes ellipses. tiny typography glow-up, obsessed π--unsafeβ render raw HTML and potentially dangerous URLs π (so: raw HTML is not replaced by a placeholder comment, and potentially dangerous URLs are not replaced by empty strings). dangerous URLs are those that begin withjavascript:,vbscript:,file:, ordata:(except forimage/png,image/gif,image/jpeg, orimage/webpmime types). like, she's literally called "unsafe", be mindful bestie π--helpβ print usage information π«Ά--versionβ print version π
π AUTHORS π
John MacFarlane, Vicent Marti, KΔrlis GaΕΔ£is, Nick Wellnhofer. icons, all of them π
π SEE ALSO π
CommonMark spec: http://spec.commonmark.org β go read it, it's giving homework but the fun kind πβ¨
quick vibe check before you go:--unsafereally does mean unsafe, and--hardbreaks/--nobreakswill override your--widthwrapping. don't say I didn't warn you π
and that's the whole page, bestie π this one came from the LOCAL source, version-dated March 24, 2016 β yeah she's an older icon but she still ate π mwah, go convert some markdown π§ββοΈβ¨
π¦ where this page comes from
- arch rolling: cmark-gfm 0.29.0.gfm.13-2 Β· BSD-2-Clause
- debian bookworm: cmark-gfm 0.29.0.gfm.6-6 Β· BSD-2-Clause
- nixos 26.05: cmark-gfm 0.29.0.gfm.13
- nixpkgs unstable: cmark-gfm 0.29.0.gfm.13
- nixpkgs unstable: swift-cmark 0.9.0
- ubuntu jammy: cmark-gfm 0.29.0.gfm.3-3 Β· BSD-2-Clause
- ubuntu noble: cmark-gfm 0.29.0.gfm.6-6build1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms