File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,13 @@ local utils = require 'pandoc.utils'
20
20
local stringify = utils .stringify
21
21
local run_json_filter = utils .run_json_filter
22
22
23
+ --- get the type of meta object
24
+ local metatype = pandoc .utils .type or
25
+ function (v )
26
+ local metatag = type (v ) == ' table' and v .t and v .t :gsub (' ^Meta' , ' ' )
27
+ return metatag and metatag ~= ' Map' and metatag or type (v )
28
+ end
29
+
23
30
--- Collection of all cites in the document
24
31
local all_cites = {}
25
32
--- Document meta value
@@ -64,7 +71,7 @@ local function resolve_doc_citations (doc)
64
71
local meta = doc .meta
65
72
local bibconf = meta .bibliography
66
73
meta .bibliography = pandoc .MetaList {}
67
- if pandoc . utils . type (bibconf ) == ' table' then
74
+ if metatype (bibconf ) == ' table' then
68
75
for _ , value in pairs (bibconf ) do
69
76
table.insert (meta .bibliography , stringify (value ))
70
77
end
You can’t perform that action at this time.
0 commit comments