File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ local List = require 'pandoc.List'
3
3
4
4
local citation_id_set = {}
5
5
6
+ local type = utils .type or type
7
+
6
8
-- Collect all citation IDs.
7
9
function Cite (c )
8
10
local cs = c .citations
@@ -37,7 +39,7 @@ function bibdata (bibliography)
37
39
or stringifyMetaInlines (bibitem ):gsub (' %.bib$' , ' ' )
38
40
end
39
41
40
- local bibs = bibliography .t == ' MetaList'
42
+ local bibs = ( type ( bibliography ) == ' List ' or bibliography .t == ' MetaList' )
41
43
and List .map (bibliography , bibname )
42
44
or {bibname (bibliography )}
43
45
return table.concat (bibs , ' ,' )
@@ -62,7 +64,7 @@ function write_dummy_aux (bibliography, auxfile)
62
64
local filename
63
65
if type (auxfile ) == ' string' then
64
66
filename = auxfile
65
- elseif type (auxfile ) == ' table' then
67
+ elseif type (auxfile ) == ' table' or type ( auxfile ) == ' Inlines ' then
66
68
-- assume list of inlines
67
69
filename = utils .stringify (pandoc .Span (auxfile ))
68
70
else
You can’t perform that action at this time.
0 commit comments