Pandoc::Filter::Multifilter - applies filters from metadata field multifilter
multifilter
# as executable pandoc -F multifilter ... # as part of other code $filter = Pandoc::Filter::Multifilter->new('foo','./bar/doz'); $filter->apply($ast);
Create a new multifilter with filters either listed in document metadata field multifilter or given as list of strings.
Return the list of filter names as specified.
Apply all filters specified on instantiation plus filters in document metadata field metafilters.
metafilters
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.
$DATA_DIR
~/.pandoc
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 ) );
This filter is provided as system-wide executable multifilter, see there for additional documentation.
To install Pandoc::Elements, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pandoc::Elements
CPAN shell
perl -MCPAN -e shell install Pandoc::Elements
For more information on module installation, please visit the detailed CPAN module installation guide.