Scroll to navigation

Pandoc::Filter::Multifilter(3pm) User Contributed Perl Documentation Pandoc::Filter::Multifilter(3pm)

NAME

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

DESCRIPTION

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

METHODS

new

Create a new multifilter.

apply( $doc [, $format [, $metadata ] ] )

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

FUNCTIONS

find_filter( $name [, $DATA_DIR ] )

Find a filter by its name an an optional Pandoc $DATA_DIR ("~/.pandoc" by default). Returns a list of command line arguments to execute the filter or throw an exception.

apply_filter( $doc, $format, @filter )

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 ) );
2017-03-31 perl v5.24.1