Skip to content

Commit ed4b831

Browse files
younes-iogordonwoodhull
authored andcommitted
Fix Typst table wrapping to prevent font family and size spill
remove typst-processed
1 parent eab8b4f commit ed4b831

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,13 @@ 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+
126+
-- Create Div wrapper and return false to prevent processing its contents
127+
return pandoc.Div({
128+
pandoc.RawBlock("typst", "#["),
129+
tbl,
130+
pandoc.RawBlock("typst", "]")
131+
}), false
126132
end,
127133
Para = function(para)
128134
if #para.content ~= 1 then
@@ -145,4 +151,4 @@ function render_typst_fixups()
145151
})
146152
end,
147153
}
148-
end
154+
end

0 commit comments

Comments
 (0)