summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2017-12-29 09:40:22 +0100
committerAlbert Krewinkel <albert@zeitkraut.de>2017-12-29 10:04:55 +0100
commit9be2c7624cb0cf3ef63516e5df959672958058bc (patch)
tree4e6bf5cb65a094fcf85ac4c3f284c16726da6786 /doc
parent820ee07f729e759d0e1da160c87b527881ee00e8 (diff)
data/pandoc.lua: drop function pandoc.global_filter
The function `global_filter` was used internally to get the implicitly defined global filter. It was of little value to end-users, but caused unnecessary code duplication in pandoc. The function has hence been dropped. Internally, the global filter is now received by interpreting the global table as lua filter. This is a Lua API change.
Diffstat (limited to 'doc')
-rw-r--r--doc/lua-filters.md19
1 files changed, 0 insertions, 19 deletions
diff --git a/doc/lua-filters.md b/doc/lua-filters.md
index afa9b939f..10dca0dce 100644
--- a/doc/lua-filters.md
+++ b/doc/lua-filters.md
@@ -1325,25 +1325,6 @@ Lua functions for pandoc scripts.
## Helper Functions
-[`global_filter ()`]{#global_filter}
-
-: Use functions defined in the global namespace to create a
- pandoc filter.
-
- Returns: A list of filter functions
-
- Usage:
-
- -- within a file defining a pandoc filter:
- text = require 'text'
- function Str(elem)
- return pandoc.Str(text.upper(elem.text))
- end
-
- return {pandoc.global_filter()}
- -- the above is equivalent to
- -- return {{Str = Str}}
-
[`pipe (command, args, input)`]{#pipe}
: Runs command with arguments, passing it some input, and