MARKDOWN(1)
๐ MARKDOWN(1) ๐
ok so this is the markdown page from the General Commands Manual โ yes, bestie, the whole manual section, we're being fancy today ๐ โ and it's literally your text-to-html glow-up machine.
โจ NAME โจ
markdown โ text to html conversion tool ๐ฆ
๐ธ SYNOPSIS ๐ธ
markdown [-d] [-T] [-V] [-b url-base] [-C prefix] [-F bitmap] [-f flags]
[-n] [-o file] [-S] [-s text] [-t text] [-toc] [textfile]
๐ DESCRIPTION ๐
okay so the markdown utility reads the markdown(7)-formatted textfile (or stdin if you didn't specify one, no pressure ๐
), compiles it, and writes the html output to stdout. that's it. that's the whole vibe. โจ
The options are as follows:
-burl-base โ links in the source that begin with/get prefixed with url-base in the output. slay, relative links. ๐-Cโ when you're processing markdown extra-style footnotes, use the given prefix instead of the default offn. yes, it takes a prefix (that's the prefix up in the synopsis, keep up bestie ๐ซถ).-dโ instead of writing the html file, dump a parse tree to stdout. literally the raw tea, no filter. ๐ณ-fflags โ set or clear various translation flags. the flags are in a comma-delimited list, with an optional+(enable),-(disable), or no (disable) lprefix on each flag. (yes, "lprefix". that's what it says. i don't make the rules ๐)linksโ allow links.imageโ allow images.smartyโ enable smartypants.pantsโ enable smartypants.htmlโ allow raw html.strictโ disable superscript, strikethrough & relaxed emphasis.extโ enable pseudo-protocols.cdataโ generate code for xml![CDATA[...]].superscriptโ enable superscript processing.emphasisโ emphasis happens everywhere.tablesโ don't process PHP Markdown Extra tables.delโ enable~~strikethrough~~.strikethroughโ enable~~strikethrough~~.tocโ enable table-of-contents processing.1.0โ compatibility with MarkdownTest_1.0autolinkโ makehttp://foo.coma link even without<>.safelinkโ paranoid check for link protocol.headerโ process pandoc-style header blocks.tabstopโ expand tabs to 4 spaces.divquoteโ allow>%class%blocks.alphalistโ allow alphabetic lists.definitionlistโ allow definition lists at all (default). usedldiscountanddlextrato control which syntaxes are respected.dldiscountโ enable discount-style definition lists (default).dlextraโ enable extra-style definition lists (not default). both styles may be enabled simultaneously.footnoteโ allow markdown extra-style footnotes.styleโ extract<style>blocks from the output.fencedcodeโ allow fenced code blocks (not default).idanchorโ useid=anchors for table-of-contents links instead of<a name=/>(not default).githubtagsโ allow underscore and dash in passed through element names (not default).urlencodedanchorโ use url-encoded chars for multibyte and nonalphanumeric chars rather than dots in toc links.
as an example, the option -f nolinks,smarty tells markdown to not allow <a tags, and to do smarty pants processing. iykyk ๐
-Fbitmap โ set translation flags. bitmap is a bit map of the various configuration options described inmarkdown(3)(the flag values are defined inmkdio.h). yes it's a bitmap. yes you need the header. ๐ง-nโ don't write generated html. generating nothing, iconic. ๐-ofile โ write the generated html to file. ๐-Sโ output<style>blocks.-Vโ show the version# and compile-time configuration data.- if the version includes the string
DEBUG,markdownwas configured with memory allocation debugging. ๐ - if the version includes the string
TAB,markdownwas configured to use the specified tabstop.
- if the version includes the string
-VVโ show the version#, the compile-time configuration, and the run-time configuration. double V, double the lore. ๐-ttext โ usemkd_text(3)to format text instead of processing stdin with themarkdown(3)function.-Tโ if run with the table-of-content flag on, dump the table of contents before the formatted text.-stext โ use themarkdown(3)function to format text.-tocโ set the table-of-content flag, then dump the table of contents before the formatted text (a shorthand for--T --toc)
๐ RETURN VALUES ๐
The markdown utility exits 0 on success, and >0 if an error occurs. zero is the good one, bestie. โจ
๐ฆ SEE ALSO ๐ฆ
markdown(3), markdown(7), mkd-extensions(7). go read them, they're giving lore. ๐
๐ AUTHOR ๐
David Parsons (orc@pell.portland.or.us) โ the main character who made this happen. ๐ซถ
ok that's the whole page, no cap, nothing skipped. run it, love it, -toc it. ๐
โจ
and the cute sign-off: this whole thing is dated January 7, 2008 and it lives under the MASTODON source/version line โ yes, that's the version info at the bottom, we're calling it a vintage icon. ๐
๐ฆ where this page comes from
- arch rolling: discount 3.0.2.0-1 ยท BSD-3-Clause
- opensuse-leap 16.0: discount 3.0.0a-160000.2.2 ยท BSD-3-Clause
- opensuse-leap 16.0: discount 3.0.0a-160000.2.2 ยท BSD-3-Clause
- opensuse-leap 16.0: discount 3.0.0a-160000.2.2 ยท BSD-3-Clause
- opensuse-leap 16.0: discount 3.0.0a-160000.2.2 ยท BSD-3-Clause
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms