DOKK / manpages / debian 10 / libpandoc-elements-perl / Pandoc::Filter::Multifilter.3pm.en
Pandoc::Filter::Multifilter(3pm) User Contributed Perl Documentation Pandoc::Filter::Multifilter(3pm)

Pandoc::Filter::Multifilter - apply filters from metadata field "multifilter"

This filter is provided as system-wide executable multifilter, see there for additional documentation.

Create a new multifilter.

Apply all filters specified in document metadata field "metafilters".

Find a filter by its name in "$DATADIR/filters", where $DATADIR is the user data directory (".pandoc" in ~ or %appdata%\pandoc), and in $PATH. Returns a list of command line arguments to execute the filter or throw an exception.

Apply a filter, given by its command line arguments, to a Pandoc Document element and return a transformed Document or throw an exception on error. Can be called like this:

  apply_filter( $doc, $format, find_filter( $name ) );
2018-11-04 perl v5.26.2