Text::...arkdown(3pm)
β¨ Text::Markup::Multimarkdown β¨
okay bestie, so this is the manual page for Text::Markup::Multimarkdown β the MultiMarkdown parser for Text::Markup, living its best life in the 3pm section of your perl docs. it's giving "tiny module, big personality." let's get into it π
πΈ NAME πΈ
Text::Markup::Multimarkdown β MultiMarkdown parser for Text::Markup
π SYNOPSIS π
my $html = Text::Markup->new->parse(file => 'README.mmd');
my $raw = Text::Markup->new->parse(
file => 'README.mmd',
options => [ raw => 1 ],
);
π¦ DESCRIPTION π¦
so like, this is the MultiMarkdown <https://fletcherpenney.net/multimarkdown/> parser for Text::Markup. here's the vibe: it reads in the file (relying on a BOM <https://www.unicode.org/unicode/faq/utf_bom.html#BOM> β yes, the byte order mark, she's the main character here), hands it off to Text::MultiMarkdown for parsing, and then returns the generated HTML as an encoded UTF-8 string with an http-equiv="Content-Type" element identifying the encoding as UTF-8. periodt. π
it recognizes files with the following extensions as MultiMarkdown:
.mmd.mmkd.mmkdn.mmdown.multimarkdown
want to change the files it recognizes? no problem bestie. load this module directly and pass a regular expression matching the desired extension(s), like so:
use Text::Markup::Multimarkdown qr{mmm+};
normally this module returns the output wrapped in a minimal HTML document skeleton. but if you want the raw output without the skeleton, you can pass the raw option to the format options argument to parse. slay, stripped down, no notes. π₯
also β and this is the fun part β Text::Markup::Mediawiki supports all of the Text::MultiMarkdown options, including:
use_metadatastrip_metadataempty_element_suffiximg_idsheading_idsbibliography_titletab_widthdisable_tablesdisable_footnotesdisable_bibliographydisable_definition_lists
not me noticing it literally says Text::Markup::Mediawiki in there π i am reporting it exactly as written, i do not make the rules, i only relay them faithfully.
π AUTHOR π
David E. Wheeler <david@justatheory.com>
π COPYRIGHT AND LICENSE π
Copyright (c) 2011-2025 David E. Wheeler. Some Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
and that's the whole page, bestie π«Ά this one's perl v5.40.1, dated 2025-12-18, and it's filed under Text::...arkdown(3pm) in the User Contributed Perl Documentation. go forth and parse, icon π
β¨π
π¦ where this page comes from
- ubuntu resolute: libtext-markup-perl 0.41-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtext-markup-perl 0.41-1 Β· 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