Currently there is only the option pandoc.utils.run_json_filter which is kind of limited. It needs the full path to the filter or it is found in PATH. Also we cannot run Lua filters.
I would like to have functionality to run all kinds of filters in a Lua filter, basically giving the function run_filter(doc, path, args...)
a path or filename like anything which can also be defined in the meta data such as:
For example run_filter(doc, "blub.lua", FORMAT) would resolve the filter path as pandoc does it the normal way (by examining the current resource-path, etc)
Currently there is only the option
pandoc.utils.run_json_filter
which is kind of limited. It needs the full path to the filter or it is found inPATH
. Also we cannot run Lua filters.I would like to have functionality to run all kinds of filters in a Lua filter, basically giving the function
run_filter(doc, path, args...)
a path or filename like anything which can also be defined in the meta data such as:For example
run_filter(doc, "blub.lua", FORMAT)
would resolve the filter path as pandoc does it the normal way (by examining the currentresource-path
, etc)