#let fn() = {
set text(fill: red)
if true [
test
] else [
test2
]
}
#fn()
Produces the pandoc error:
unexpected end of input
expecting end of input
Identifier "else" not found
According to typst, this is a set rule followed by an independent if-statement. I suppose this means set-if code must have the if and set keywords on the same line to cause a conditional set.
Produces the pandoc error:
According to typst, this is a set rule followed by an independent if-statement. I suppose this means
set-if
code must have theif
andset
keywords on the same line to cause a conditional set.