Closed SillyFreak closed 2 months ago
Oh yes, this is pity. I didn't think about raw elements occuring in the rendered output. Your suggested fix looks good. For now, until a new version is released, you could work around that by specifying
#let module = tidy.parse-module(
module,
preamble: "set raw(block: false);"
)
Thanks for reporting!
thanks, will try that!
I just noticed that lang
has basically the same issue: https://github.com/Mc-Zen/tidy/blob/main/src/show-example.typ#L38
Ah yes, I will fix this along the way
Both issues should be fixed now. These two examples
#show-example(`a #raw("foo") b`, mode: "markup")
#show-example(`#raw("#import")`, mode: "markup")
produce
Reproducing example:
This uses
#raw("foo")
in an example. By default, this would not result in inline raw content, but due to this line it becomes a block. If I understand the intent behind it correctly, I think this could go here instead.