From 41baaff32737e57dd9ec0a1153416ca24a12dca1 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Tue, 22 Aug 2017 23:12:39 +0200 Subject: Text.Pandoc.Lua: support Inline and Block catch-alls Try function `Inline`/`Block` if no other filter function of the respective type matches an element. Closes: #3859 --- data/pandoc.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'data/pandoc.lua') diff --git a/data/pandoc.lua b/data/pandoc.lua index f0d773b2d..16387d27b 100644 --- a/data/pandoc.lua +++ b/data/pandoc.lua @@ -808,7 +808,8 @@ function M.global_filter() function is_filter_function(k) return M.Inline.constructor[k] or M.Block.constructor[k] or - k == "Meta" or k == "Doc" or k == "Pandoc" + k == "Meta" or k == "Doc" or k == "Pandoc" or + k == "Block" or k == "Inline" end for k, v in pairs(_G) do if is_filter_function(k) then -- cgit v1.2.3