aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2018-10-15 21:08:39 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2018-10-15 21:08:39 +0200
commit8a00b30e40b7a799c3c4e78528d4d257af48891a (patch)
tree99085cf80f25a24d309b2285be026d6d29d76938
parenta444321be87da3cba36c737995cd1590fa644e8b (diff)
downloadpandoc-8a00b30e40b7a799c3c4e78528d4d257af48891a.tar.gz
Lua pandoc module: ensure MetaList elements behave like Lists
Methods usable on Lists can also be used on MetaList objects.
-rw-r--r--data/pandoc.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/data/pandoc.lua b/data/pandoc.lua
index dc09c85f8..370c6a944 100644
--- a/data/pandoc.lua
+++ b/data/pandoc.lua
@@ -274,6 +274,9 @@ M.MetaList = M.MetaValue:create_constructor(
return ensureList(content)
end
)
+for k, v in pairs(List) do
+ M.MetaList.behavior[k] = v
+end
--- Meta map
-- @function MetaMap