Fork me on GitHub
#clerk
<
2023-01-19
>
Matt02:01:08

Ahhh, try this syntax, I think that might be outdated:

^{:nextjournal.clerk/visibility :hide}(slurp "")
This "gardened" to the elided result with the code hidden:

Oliver Marks11:01:37

seems its specifically the slurp, it works locally when jacked in its only when building for the garden

Oliver Marks12:01:46

okay on a bit more investigation, the cause is this.

(slurp "src/bb_inkscape_example.sh")
vs
(clerk/html [:pre (slurp "src/bb_inkscape_example.sh")])
as soon as the slurp is wrapped in clerk/html it breaks the rendering as in the example above, guess its a bug

mkvlr21:01:45

can you file an issue with a repro? Might need to escape the string

mkvlr21:01:09

we treat a string as markup eg for svg