summaryrefslogtreecommitdiff
path: root/data/pandoc.lua
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2017-08-22 23:12:39 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2017-08-22 23:30:48 +0200
commit41baaff32737e57dd9ec0a1153416ca24a12dca1 (patch)
treeca88cf3b4f2bbc08e2f0704d0a5b9c6bb6c07ff6 /data/pandoc.lua
parent56fb854ad85dafff2016892bd6d2c5d24423bff0 (diff)
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
Diffstat (limited to 'data/pandoc.lua')
-rw-r--r--data/pandoc.lua3
1 files changed, 2 insertions, 1 deletions
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