You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
gabyx
changed the title
[Lua filters]: Enhange functionality to run filters in a Lua filter
[Lua]: Enhange functionality to run filters in a Lua filter
Nov 11, 2020
gabyx
changed the title
[Lua]: Enhange functionality to run filters in a Lua filter
[Lua]: Enhance functionality to run filters in a Lua filter
Nov 12, 2020
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)The text was updated successfully, but these errors were encountered: