git.iko.soy/typeable/pandoc
on master help sign in
Update docs on filters.
commit346b10392f93fae682657c44399245250eddfee4 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 26 Dec 2017, 10:33 (9 years ago) parent8b575db
2 files changed+7−5
MANUAL.txt+3 doc/lua-filters.md+4−5
MANUAL.txt+3
@@ -482,6 +482,9 @@ Reader options
482482
483483 3. `$PATH` (executable only)
484484
485+ Filters and lua-filters are applied in the order specified
486+ on the command line.
487+
485488`--lua-filter=`*SCRIPT*
486489
487490: Transform the document in a similar fashion as JSON filters (see
doc/lua-filters.md+4−5
@@ -88,11 +88,10 @@ then it would be applied like this:
8888
8989 pandoc --lua-filter=current-date.lua -f markdown MANUAL.txt
9090
91−The `--lua-filter` can be supplied multiple times, causing the
92−filters to be applied sequentially in the order they were given.
93−If other, non-Lua filters are given as well (via `--filter`),
94−then those are executed *after* all Lua filters have been
95−applied.
91+The `--lua-filter` option may be supplied multiple times. Pandoc
92+applies all filters (including JSON filters specified via
93+`--filter` and lua filters specified via `--lua-filter`)
94+in the order they appear on the command line.
9695
9796Pandoc expects each lua file to return a list of filters. The
9897filters in that list are called sequentially, each on the result