From 6fe2889feb01e800d9160cef5882caf89d00b3df Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Tue, 26 Nov 2024 14:56:27 +0100 Subject: [PATCH] Avoid type confusion with captions during crossref handling --- src/resources/filters/crossref/index.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resources/filters/crossref/index.lua b/src/resources/filters/crossref/index.lua index 16ad656d1c..3e11fe7caa 100644 --- a/src/resources/filters/crossref/index.lua +++ b/src/resources/filters/crossref/index.lua @@ -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,