path: root/doc
diff options
authorJohn MacFarlane <>2017-09-26 20:20:09 -0700
committerJohn MacFarlane <>2017-09-26 20:20:09 -0700
commit9a47c7863b7c9d23928e51fd23b8ebc7ac684d16 (patch)
treeddb6daaed76ffca1442e989bcd1c60ede60b9674 /doc
parent3fe4aad5a16545a92088510a00d2109a04fd25b8 (diff)
Lua filters: set global FORMAT instead of args.
This changes the type of runLuaFilter.
Diffstat (limited to 'doc')
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/ b/doc/
index 5e43afb26..16f6bfd56 100644
--- a/doc/
+++ b/doc/
@@ -132,6 +132,10 @@ Elements without matching functions are left untouched.
See [module documentation](pandoc-module.html) for a list of pandoc
+The global `FORMAT` is set to the format of the pandoc writer
+being used (`html5`, `latex`, etc.), so the behavior of a filter
+can be made conditional on the eventual output format.
# Pandoc Module
The `pandoc` lua module is loaded into the filter's lua