git.iko.soy/typeable/pandoc
on master help sign in
MANUAL.txt: update description of `-L`/`--lua-filter`.
45174d7Albert Krewinkel
MANUAL.txt+10−18
@@ -588,8 +588,8 @@ header when requesting a document from a URL:
588
588
589 3. `$PATH` (executable only)
589 3. `$PATH` (executable only)
590
590
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.
593
593
594`-L` *SCRIPT*, `--lua-filter=`*SCRIPT*
594`-L` *SCRIPT*, `--lua-filter=`*SCRIPT*
595
595
@@ -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.
605
605
606− The following is an example Lua script for macro-expansion:
606+ See the [Lua filters documentation] for further details.
607−
608− function expand_hello_world(inline)
609− if inline.c == '{{helloworld}}' then
610− return pandoc.Emph{ pandoc.Str "Hello, World" }
611− else
612− return inline
613− end
614− end
615−
616− return {{Str = expand_hello_world}}
617
607
618 In order of preference, pandoc will look for Lua filters in
608 In order of preference, pandoc will look for Lua filters in
619
609
620− 1. a specified full or relative path (executable or
610+ 1. a specified full or relative path
621− non-executable)
622
611
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).
614+
615+ Filters, Lua filters, and citeproc processing are applied in
616+ the order specified on the command line.
626
617
627`-M` *KEY*[`=`*VAL*], `--metadata=`*KEY*[`:`*VAL*]
618`-M` *KEY*[`=`*VAL*], `--metadata=`*KEY*[`:`*VAL*]
628
619
@@ -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
710
702
711## General writer options {.options}
703## General writer options {.options}
712
704