Skip to content

Commit 9272f7a

Browse files
committed
crossref - use pandoc.Caption to reset table caption
1 parent f4df155 commit 9272f7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ function parse_floatreftargets()
268268
found_caption = true
269269
caption = table.caption.long[1] -- what if there's more than one entry here?
270270
-- table caption should be removed from the table as we'll handle it
271-
table.caption.long = pandoc.Blocks({})
271+
table.caption = pandoc.Caption{}
272272
return table
273273
end
274274
end

0 commit comments

Comments
 (0)