Text::...arkdown(3pm)

πŸ“¦
version 0.41 Β· 3 versions
, in ubuntu resolute, ubuntu stonking

✨ 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_metadata
  • strip_metadata
  • empty_element_suffix
  • img_ids
  • heading_ids
  • bibliography_title
  • tab_width
  • disable_tables
  • disable_footnotes
  • disable_bibliography
  • disable_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 (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