Skip to content

Commit 557b5f3

Browse files
committed
Avoid type confusion with captions during crossref handling
1 parent 90fb5e6 commit 557b5f3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)