NAME¶
Pandoc::Filter::Multifilter - applies filters from metadata field
"multifilter"
SYNOPSIS¶
# as executable
pandoc -F multifilter ...
# as part of other code
$filter = Pandoc::Filter::Multifilter->new('foo','./bar/doz');
$filter->apply($ast);
METHODS¶
new( $document | @names )¶
Create a new multifilter with filters either listed in document metadata field
"multifilter" or given as list of strings.
names¶
Return the list of filter names as specified.
Apply all filters specified on instantiation plus filters 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 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 ) );
SEE ALSO¶
This filter is provided as system-wide executable multifilter, see there for
additional documentation.