---
name: "Pandoc::Filter::Multifilter"
section: "3pm"
platform: "linux"
package: "libpandoc-elements-perl"
version: "0.38-7"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Pandoc::Filter::Multifilter"
---

# Pandoc::Filter::Multifilter(3pm)

apply filters from metadata field "multifilter"

## 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 \[, $DATADIR \] )

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\_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 ) );
```
