Skip to content

Commit 8af6c20

Browse files
committed
lua,typst - fixes for unnumbered sections
1 parent 240f91c commit 8af6c20

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/resources/filters/modules/typst.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ local function _main()
1313
result:insert(pandoc.RawInline("typst", tostring(v)))
1414
elseif type(v) == "string" then
1515
result:insert(pandoc.RawInline("typst", "\"" .. v .. "\""))
16+
elseif type(v) == "boolean" then
17+
result:insert(pandoc.RawInline("typst", v and "true" or "false"))
1618
elseif v.t == "RawInline" or v.t == "RawBlock" then
1719
if v.format == "typst" then
1820
result:insert(v)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function render_typst()
7575
{"level", el.level},
7676
})
7777
if el.classes:includes("unnumbered") then
78-
params:insert({"numbering", "none"})
78+
params:insert({"numbering", pandoc.RawInline("typst", "none")})
7979
end
8080
if el.classes:includes("unlisted") then
8181
params:insert({"outlined", false})

0 commit comments

Comments
 (0)