Skip to content

Commit 079ec20

Browse files
committed
typst:no-figure is already added on all table
This was the wrong class but now unnecessary because of #11010 Test is already added in this PR
1 parent 3281c6b commit 079ec20

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/pulls/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)