Text::...Hoedown(3pm)
π NAME π
okay bestie, welcome to the Text::...Hoedown(3pm) page β that's the manual name folded right up here, and yes it's a User Contributed Perl Documentation situation. The module is Text::Markdown::Hoedown, aka hoedown for Perl5. Slay. β¨
πΈ SYNOPSIS πΈ
like, here's the vibe:
use Text::Markdown::Hoedown;
print markdown(<<'...');
# foo
bar
* hoge
* fuga
...
π¦ DESCRIPTION π¦
Text::Markdown::Hoedown is the binding library for hoedown β that's the whole flex, no cap. π
Also, hoedown is a forking project from sundown. That's the lore. π
β¨ FUNCTIONS β¨
π markdown π
my $out = markdown($src :Str, %options) :Str β Rendering markdown. π«Ά
The options are following:
toc_nesting_lvlβ Nesting levels for TOC generation. (Default:99)extensionsβ this is a bit flag. You can use the flags by|operator. Values are following:HOEDOWN_EXT_TABLESβ Parse PHP-Markdown style tables.HOEDOWN_EXT_FENCED_CODEβ Parse fenced code blocks.HOEDOWN_EXT_FOOTNOTESβ Parse footnotes.HOEDOWN_EXT_AUTOLINKβ Automatically turn safe URLs into links.HOEDOWN_EXT_STRIKETHROUGHβ Parse~~stikethrough~~spans.HOEDOWN_EXT_UNDERLINEβ Parse_underline_instead of emphasis.HOEDOWN_EXT_HIGHLIGHTβ Parse==highlight==spans.HOEDOWN_EXT_QUOTEβ Render"quotes"as<q>quotes</q>.HOEDOWN_EXT_SUPERSCRIPTβ Parsesuper^script.HOEDOWN_EXT_MATHβ Parse TeX$$math$$syntax, Kramdown style.HOEDOWN_EXT_NO_INTRA_EMPHASISβ Disableemphasis_between_words.HOEDOWN_EXT_SPACE_HEADERSβ Require a space after'#'in headers.HOEDOWN_EXT_MATH_EXPLICITβ Instead of guessing by context, parse$inline math$and$$always block math$$(requiresHOEDOWN_EXT_MATH).HOEDOWN_EXT_DISABLE_INDENTED_CODEβ Don't parse indented code blocks.
html_optionsβ this is a bit flag. You can use the flags by|operator. Values are following:HOEDOWN_HTML_SKIP_HTMLβ Strip all HTML tags.HOEDOWN_HTML_ESCAPEβ Escape all HTML.HOEDOWN_HTML_HARD_WRAPβ Render each linebreak as<br>.HOEDOWN_HTML_USE_XHTMLβ Render XHTML.
max_nestingβ the docs literally say βI don't know what this do.β π not me making it up, that's the actual note.
π markdown_toc π
markdown_toc($src:Str, %opts) :Str β Generate TOC HTML from $str. π
Options are following:
nesting_levelβ Maximum nesting level for TOC.extensionsβ Same as above.max_nestingβ Same as above.
All HOEDOWN_* constants are exported by default. π«Ά
π TODO π
Document about low level APIs. That's it. That's the todo, bestie. π
π§ HACKING π§
The hoedown/ directory is managed by git subtree.
You can pull the modifications from upstream by following command:
git subtree pull --prefix=hoedown git@github.com:hoedown/hoedown.git master
β LICENSE β
Copyright (C) tokuhirom.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
π AUTHOR π
tokuhirom <tokuhirom@gmail.com>
π cute little sign-off: this page is from perl v5.42.2, dated 2025-06-30 β bye bestie, go render some markdown! π
π¦ where this page comes from
- alpine 3.24: perl-text-markdown-hoedown-doc 1.03-r4 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms