aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2024-05-27 23:20:31 +0200
committerGitHub <[email protected]>2024-05-27 14:20:31 -0700
commitad68ff34aeb78e26d98a593dfdaf6bc4933857fc (patch)
tree956d1788c84d44d64b9b337ac2dc4d373d218fd3 /doc
parent205e54c245aaaa347046afd0e0b4008c993e4889 (diff)
Lua: add function `pandoc.utils.run_lua_filter` (#9803)
Diffstat (limited to 'doc')
-rw-r--r--doc/lua-filters.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/lua-filters.md b/doc/lua-filters.md
index 6dc910117..fc5910e5e 100644
--- a/doc/lua-filters.md
+++ b/doc/lua-filters.md
@@ -3910,6 +3910,28 @@ Returns:
*Since: 2.17*
+### run_filter_filter {#pandoc.utils.run_filter_filter}
+
+`run_filter_filter (doc, filter)`
+
+Filter the given doc by passing it through a Lua filter.
+
+The filter will be run in the current Lua process.
+
+Parameters:
+
+`doc`
+: the Pandoc document to filter ([Pandoc])
+
+`filter`
+: filepath of the filter to run (string)
+
+Returns:
+
+- filtered document ([Pandoc])
+
+*Since: 3.2.1*
+
### run_json_filter {#pandoc.utils.run_json_filter}
`run_json_filter (doc, filter[, args])`