Skip to content

Commit 6fe2889

Browse files
committed
Avoid type confusion with captions during crossref handling
1 parent ae4056e commit 6fe2889

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/resources/filters/crossref/index.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ end
6565
-- add an entry to the index
6666
function indexAddEntry(label, parent, order, caption, appendix)
6767
if caption ~= nil then
68-
caption = pandoc.List(caption)
68+
caption = _quarto.utils.as_blocks(caption)
6969
else
70-
caption = pandoc.List({})
70+
caption = pandoc.Blocks({})
7171
end
7272
crossref.index.entries[label] = {
7373
parent = parent,

0 commit comments

Comments
 (0)