Skip to content

Commit

Permalink
lua - revert quarto-scaffold change in typst.function_call
Browse files Browse the repository at this point in the history
  • Loading branch information
cscheid committed Apr 29, 2024
1 parent 91a8060 commit ba03229
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/resources/filters/modules/typst.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ local function _main()
end
end
result:insert(pandoc.RawInline("typst", ")"))
return pandoc.Div(result, pandoc.Attr("", {"quarto-scaffold"}))

-- We emit slightly inefficient output here by not using `quarto-scaffold`.
-- The result from this div cannot be a quarto-scaffold because some typst template
-- functions assume they can get the element's children. pandoc.Div is converted to
-- a #block, and those are guaranteed to have children.
return pandoc.Div(result)
end

local function as_typst_content(content)
Expand Down

0 comments on commit ba03229

Please sign in to comment.