aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2021-11-01 08:14:44 +0100
committerAlbert Krewinkel <albert@zeitkraut.de>2021-11-01 08:27:14 +0100
commit96e76d4cd475fe479ae6fb36bd6feee1cc6ff39f (patch)
tree8d67dba95faba2bc73d2cfbc66d317a2390a3744 /data
parent171bfd3d652479dab18df4062e24fc7237005859 (diff)
downloadpandoc-96e76d4cd475fe479ae6fb36bd6feee1cc6ff39f.tar.gz
Lua: restore List behavior of MetaList
Fixes a regression introduced in 2.16 which had MetaList elements loose the `pandoc.List` properties. Fixes #7650
Diffstat (limited to 'data')
-rw-r--r--data/pandoc.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/data/pandoc.lua b/data/pandoc.lua
index 1f4830858..d4bd955aa 100644
--- a/data/pandoc.lua
+++ b/data/pandoc.lua
@@ -55,6 +55,7 @@ local function create_accessor_behavior (tag)
if k == "t" then
return getmetatable(t)["tag"]
end
+ return getmetatable(t)[k]
end
behavior.__pairs = function (t)
return next, t