MARKDOWN(1)
π MARKDOWN(1) β Markdown.pl (User Contributed Perl Documentation) π
β¨ NAME β¨
Markdown.pl β Convert Markdown syntax to (X)HTML
πΈ DESCRIPTION πΈ
okay so this program is distributed as part of Perl's Text::Markdown module, illustrating sample usage. It's the sample-usage bestie, live and in color π
Markdown can be invoked on any file containing Markdown-syntax, and will produce the corresponding (X)HTML on STDOUT:
$ cat file.txt
This is a *test*.
Absolutely _nothing_ to see here. _Just a **test**_!
* test
* Yup, test.
$ Markdown.pl file.txt
<p>This is a <em>test</em>.</p>
<p>Absolutely <em>nothing</em> to see here. <em>Just a <strong>test</strong></em>!</p>
<ul>
<li>test</li>
<li>Yup, test.</li>
</ul>
If no file is specified, it will expect its input from STDIN:
$ echo "A **simple** test" | markdown
<p>A <strong>simple</strong> test</p>
π OPTIONS π
versionβ Shows the full information for this version πshortversionβ Shows only the version number β¨html4tagsβ Produce HTML 4-style tags instead of XHTML. XHTML requires elements that do not wrap a block (i.e. thehrtag) to state they will not be closed, by closing with/>. HTML 4-style will plainly output the tag as it comes:
$ echo '---' | markdown
<hr />
$ echo '---' | markdown --html4tags
<hr>
helpβ Shows this documentation π«Ά
π AUTHOR π
Copyright 2004 John Gruber
Copyright 2008 Tomas Doran
The manpage was written by Gunnar Wolf <gwolf@debian.org> for its use in Debian systems, but can be freely used elsewhere.
For full licensing information, please refer to Text::Markdown.pm's full documentation.
π¦ SEE ALSO π¦
Text::Markdown, <http://daringfireball.net/projects/markdown/>
π«Ά cute sign-off: this page is from perl v5.42.0, dated 2025-12-14, and it's the MARKDOWN(1) manual. Byeee, bestie β¨
π¦ where this page comes from
- arch rolling: perl-text-markdown 1.000031-17 Β· GPL AND PerlArtistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms