From 96e76d4cd475fe479ae6fb36bd6feee1cc6ff39f Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Mon, 1 Nov 2021 08:14:44 +0100 Subject: Lua: restore List behavior of MetaList Fixes a regression introduced in 2.16 which had MetaList elements loose the `pandoc.List` properties. Fixes #7650 --- data/pandoc.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'data') 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 -- cgit v1.2.3