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 --- test/lua/block-count.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/lua/block-count.lua (limited to 'test/lua') diff --git a/test/lua/block-count.lua b/test/lua/block-count.lua new file mode 100644 index 000000000..508b05ea8 --- /dev/null +++ b/test/lua/block-count.lua @@ -0,0 +1,11 @@ +local num_blocks = 0 + +function Block(el) + num_blocks = num_blocks + 1 +end + +function Pandoc(blocks, meta) + return pandoc.Pandoc { + pandoc.Para{pandoc.Str(num_blocks)} + } +end -- cgit v1.2.3