@@ -588,8 +588,8 @@ header when requesting a document from a URL:
589 3. `$PATH` (executable only)
589 3. `$PATH` (executable only)
591− Filters and Lua-filters are applied in the order specified
591+ Filters, Lua-filters, and citeproc processing are applied in
592− on the command line.
592+ the order specified on the command line.
594`-L` *SCRIPT*, `--lua-filter=`*SCRIPT*
594`-L` *SCRIPT*, `--lua-filter=`*SCRIPT*
@@ -603,26 +603,17 @@ header when requesting a document from a URL:
603 The `pandoc` Lua module provides helper functions for element
603 The `pandoc` Lua module provides helper functions for element
604 creation. It is always loaded into the script's Lua environment.
604 creation. It is always loaded into the script's Lua environment.
606− The following is an example Lua script for macro-expansion:
606+ See the [Lua filters documentation] for further details.
608− function expand_hello_world(inline)
609− if inline.c == '{{helloworld}}' then
610− return pandoc.Emph{ pandoc.Str "Hello, World" }
616− return {{Str = expand_hello_world}}
618 In order of preference, pandoc will look for Lua filters in
608 In order of preference, pandoc will look for Lua filters in
620− 1. a specified full or relative path (executable or
610+ 1. a specified full or relative path
623− 2. `$DATADIR/filters` (executable or non-executable)
624− where `$DATADIR` is the user data directory (see
612+ 2. `$DATADIR/filters` where `$DATADIR` is the user data
625− `--data-dir`, above).
613+ directory (see `--data-dir`, above).
615+ Filters, Lua filters, and citeproc processing are applied in
616+ the order specified on the command line.
627`-M` *KEY*[`=`*VAL*], `--metadata=`*KEY*[`:`*VAL*]
618`-M` *KEY*[`=`*VAL*], `--metadata=`*KEY*[`:`*VAL*]
@@ -707,6 +698,7 @@ header when requesting a document from a URL:
707[PHP]: https://github.com/vinai/pandocfilters-php
698[PHP]: https://github.com/vinai/pandocfilters-php
708[perl]: https://metacpan.org/pod/Pandoc::Filter
699[perl]: https://metacpan.org/pod/Pandoc::Filter
709[JavaScript/node.js]: https://github.com/mvhenderson/pandoc-filter-node
700[JavaScript/node.js]: https://github.com/mvhenderson/pandoc-filter-node
701+[Lua filters documentation]: https://pandoc.org/lua-filters.html
711## General writer options {.options}
703## General writer options {.options}