Skip to content

Commit

Permalink
Avoid type confusion with captions during crossref handling
Browse files Browse the repository at this point in the history
  • Loading branch information
tarleb committed Nov 26, 2024
1 parent ae4056e commit 6fe2889
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resources/filters/crossref/index.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ end
-- add an entry to the index
function indexAddEntry(label, parent, order, caption, appendix)
if caption ~= nil then
caption = pandoc.List(caption)
caption = _quarto.utils.as_blocks(caption)
else
caption = pandoc.List({})
caption = pandoc.Blocks({})
end
crossref.index.entries[label] = {
parent = parent,
Expand Down

0 comments on commit 6fe2889

Please sign in to comment.