Skip to content

Commit 042d9b0

Browse files
committed
Use global function to check if caption if empty
1 parent 73acb40 commit 042d9b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/filters/layout/typst.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function make_typst_figure(tbl)
1111
local identifier = tbl.identifier
1212
local separator = tbl.separator
1313

14-
if (not caption or #caption.content == 0) and tbl.separator == nil then
14+
if _quarto.utils.is_empty_node(caption) and tbl.separator == nil then
1515
separator = ""
1616
end
1717

0 commit comments

Comments
 (0)