Skip to content

Commit cf50d51

Browse files
cleanup: remove logs, green backround, use output-ext not keep-typ
1 parent a65151f commit cf50d51

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

src/resources/filters/customnodes/theorem.lua

+2-3
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ local function ensure_typst_theorems(reftype)
9999
if not letted_typst_theorem[reftype] then
100100
letted_typst_theorem[reftype] = true
101101
local theorem_type = theorem_types[reftype]
102-
quarto.doc.include_text("in-header", "#let " .. theorem_type.env .. " = thmbox(\"" .. theorem_type.env .. "\", \"" .. theorem_type.title .. "\", fill: rgb(\"#eeffee\"))")
102+
quarto.doc.include_text("in-header", "#let " .. theorem_type.env .. " = thmbox(\"" ..
103+
theorem_type.env .. "\", \"" .. theorem_type.title .. "\")")
103104
end
104105
end
105106

@@ -160,11 +161,9 @@ end, function(thm)
160161
if name then
161162
tappend(callthm.content, name)
162163
end
163-
quarto.log.output(el.content)
164164
callthm.content:insert(pandoc.RawInline("typst", "\")["))
165165
tappend(callthm.content, quarto.utils.as_inlines(el.content))
166166
callthm.content:insert(pandoc.RawInline("typst", "] <" .. el.attr.identifier .. ">"))
167-
quarto.log.output(callthm.content)
168167
return callthm
169168

170169
else

tests/docs/smoke-all/crossrefs/theorem/lemma-1.qmd

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
2-
keep-typ: true
2+
format:
3+
typst:
4+
output-ext: typ
35
_quarto:
46
tests:
57
html:

tests/docs/smoke-all/crossrefs/theorem/theorem-1.qmd

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
2-
keep-typ: true
2+
format:
3+
typst:
4+
output-ext: typ
35
_quarto:
46
tests:
57
html:

0 commit comments

Comments
 (0)