diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2018-10-15 21:08:39 +0200 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2018-10-15 21:08:39 +0200 |
commit | 8a00b30e40b7a799c3c4e78528d4d257af48891a (patch) | |
tree | 99085cf80f25a24d309b2285be026d6d29d76938 | |
parent | a444321be87da3cba36c737995cd1590fa644e8b (diff) | |
download | pandoc-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.lua | 3 |
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 |