diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2021-11-01 08:14:44 +0100 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2021-11-01 08:27:14 +0100 |
commit | 96e76d4cd475fe479ae6fb36bd6feee1cc6ff39f (patch) | |
tree | 8d67dba95faba2bc73d2cfbc66d317a2390a3744 /data | |
parent | 171bfd3d652479dab18df4062e24fc7237005859 (diff) | |
download | pandoc-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.lua | 1 |
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 |