From 9a47c7863b7c9d23928e51fd23b8ebc7ac684d16 Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Tue, 26 Sep 2017 20:20:09 -0700
Subject: Lua filters: set global FORMAT instead of args.

This changes the type of runLuaFilter.
---
 doc/lua-filters.md | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'doc')

diff --git a/doc/lua-filters.md b/doc/lua-filters.md
index 5e43afb26..16f6bfd56 100644
--- a/doc/lua-filters.md
+++ b/doc/lua-filters.md
@@ -132,6 +132,10 @@ Elements without matching functions are left untouched.
 See [module documentation](pandoc-module.html) for a list of pandoc
 elements.
 
+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
-- 
cgit v1.2.3