Update docs on filters.
This commit is contained in:
parent
8b575dbf84
commit
346b10392f
2 changed files with 7 additions and 5 deletions
|
@ -482,6 +482,9 @@ Reader options
|
||||||
|
|
||||||
3. `$PATH` (executable only)
|
3. `$PATH` (executable only)
|
||||||
|
|
||||||
|
Filters and lua-filters are applied in the order specified
|
||||||
|
on the command line.
|
||||||
|
|
||||||
`--lua-filter=`*SCRIPT*
|
`--lua-filter=`*SCRIPT*
|
||||||
|
|
||||||
: Transform the document in a similar fashion as JSON filters (see
|
: Transform the document in a similar fashion as JSON filters (see
|
||||||
|
|
|
@ -88,11 +88,10 @@ then it would be applied like this:
|
||||||
|
|
||||||
pandoc --lua-filter=current-date.lua -f markdown MANUAL.txt
|
pandoc --lua-filter=current-date.lua -f markdown MANUAL.txt
|
||||||
|
|
||||||
The `--lua-filter` can be supplied multiple times, causing the
|
The `--lua-filter` option may be supplied multiple times. Pandoc
|
||||||
filters to be applied sequentially in the order they were given.
|
applies all filters (including JSON filters specified via
|
||||||
If other, non-Lua filters are given as well (via `--filter`),
|
`--filter` and lua filters specified via `--lua-filter`)
|
||||||
then those are executed *after* all Lua filters have been
|
in the order they appear on the command line.
|
||||||
applied.
|
|
||||||
|
|
||||||
Pandoc expects each lua file to return a list of filters. The
|
Pandoc expects each lua file to return a list of filters. The
|
||||||
filters in that list are called sequentially, each on the result
|
filters in that list are called sequentially, each on the result
|
||||||
|
|
Loading…
Reference in a new issue