Skip to content

Commit 602004b

Browse files
committed
Fix type in Caption
1 parent 47ba3c3 commit 602004b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/resources/filters/quarto-pre/parsefiguredivs.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ function parse_floatreftargets()
494494
end
495495

496496
-- we've parsed the caption, so we can remove it from the table
497-
el.caption.long = pandoc.List({})
497+
el.caption.long = pandoc.Blocks({})
498498

499499
if label == "" then
500500
return nil

src/resources/filters/quarto-pre/table-captions.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ function applyTableCaptions(el, tblCaptions, tblLabels)
140140
cap:insert(pandoc.Str("{#" .. tblLabels[idx] .. "}"))
141141
end
142142
idx = idx + 1
143-
el.caption.long = pandoc.Plain(cap)
143+
el.caption.long = pandoc.Blocks{pandoc.Plain(cap)}
144144
return el
145145
end
146146
end,

0 commit comments

Comments
 (0)