Skip to content

Commit 6a3445f

Browse files
committed
Fix Typst table wrapping to prevent font family and size spill
Fixes #11093
1 parent 61b2b87 commit 6a3445f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/resources/filters/quarto-post/typst.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,11 @@ function render_typst_fixups()
122122
Table = function(tbl)
123123
-- https://github.com/quarto-dev/quarto-cli/issues/10438
124124
tbl.classes:insert("typst:no-figure")
125-
return tbl
125+
return pandoc.Div({
126+
pandoc.RawBlock("typst", "#["),
127+
tbl,
128+
pandoc.RawBlock("typst", "]")
129+
})
126130
end,
127131
Para = function(para)
128132
if #para.content ~= 1 then
@@ -145,4 +149,4 @@ function render_typst_fixups()
145149
})
146150
end,
147151
}
148-
end
152+
end

0 commit comments

Comments
 (0)