Pandoc...ifilter(3pm)
π Pandoc::Filter::Multifilter β the Pandoc...ifilter(3pm) page, bestie edition π¦
okay so this is a Perl module page, it's 3pm, it lives in the User Contributed Perl Documentation, and it's literally all about one little filter that reads its instructions straight out of your metadata. iconic behavior tbh π
β¨ NAME β¨
Pandoc::Filter::Multifilter β applies filters from the metadata field "multifilter" π
πΈ DESCRIPTION πΈ
so this filter ships as a system-wide executable called multifilter. that's the whole vibe. π
and like β if you want the actual documentation, go read the docs over there at multifilter, because this page is not the one doing the heavy lifting. no cap. π«Ά
π METHODS π
new
creates a brand new multifilter. fresh out the box, sparkling, ready to go β¨
apply( $doc [, $format [, $metadata ] ] )
applies every single filter that's listed in the document metadata field "metafilters". all of them. the whole squad. π₯
π FUNCTIONS π
find_filter( $name [, $DATADIR ] )
this one goes hunting for a filter by its name π and it looks in two places:
- inside
"$DATADIR/filters"β where$DATADIRis your user data directory, aka.pandocin~or%appdata%\pandoc - and in your
$PATHπ
what does it give you back? a list of command line arguments you'd use to execute that filter π« β¦or it throws an exception, if it's feeling dramatic π
apply_filter( $doc, $format, @filter )
this one takes a filter β handed to it as its command line arguments β and applies it to a Pandoc Document element πβ‘οΈπ. you get back a transformed Document, or it throws an exception on error π
and you can call it like this, fr fr:
apply_filter( $doc, $format, find_filter( $name ) );
lowkey a tiny module, highkey doing the most π§
and that's the whole page, bestie! this was perl v5.38.2, dated 2024-08-03, and the manual is Pandoc...ifilter(3pm) β mwah, slay, periodt π
π
π¦ where this page comes from
- debian trixie: libpandoc-elements-perl 0.38-7 Β· GPL-2.0-only
- ubuntu resolute: libpandoc-elements-perl 0.38-7 Β· GPL-2.0-only
- ubuntu stonking: libpandoc-elements-perl 0.38-7 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms