Skip to content

Commit 5f3cd1f

Browse files
authored
Merge pull request #13050 from quarto-dev/typst-no-figure-clean
typst:no-figure is already added on all table
2 parents f7416aa + 07a774d commit 5f3cd1f

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

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

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,6 @@ function render_typst()
3131
end
3232
},
3333
{
34-
FloatRefTarget = function(float)
35-
if float.content == nil then
36-
return float
37-
end
38-
if float.content.t == "Table" then
39-
-- this needs the fix from https://github.com/jgm/pandoc/pull/9778
40-
float.content.classes:insert("typst-no-figure")
41-
else
42-
float.content = _quarto.ast.walk(float.content, {
43-
Table = function(tbl)
44-
tbl.classes:insert("typst-no-figure")
45-
return tbl
46-
end
47-
})
48-
end
49-
return float
50-
end,
5134
Div = function(div)
5235
if div.classes:includes("block") then
5336
div.classes = div.classes:filter(function(c) return c ~= "block" end)

0 commit comments

Comments
 (0)