diff options
Diffstat (limited to 'test/lua/metatable-catch-all.lua')
| -rw-r--r-- | test/lua/metatable-catch-all.lua | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/test/lua/metatable-catch-all.lua b/test/lua/metatable-catch-all.lua deleted file mode 100644 index 05df16bbf..000000000 --- a/test/lua/metatable-catch-all.lua +++ /dev/null @@ -1,20 +0,0 @@ -local num_inlines = 0 - -function catch_all(el) - if el.tag and pandoc.Inline.constructor[el.tag] then - num_inlines = num_inlines + 1 - end -end - -function Pandoc(blocks, meta) - return pandoc.Pandoc { - pandoc.Para{pandoc.Str(num_inlines)} - } -end - -return { - setmetatable( - {Pandoc = Pandoc}, - {__index = function(_) return catch_all end} - ) -} |
