scicloj / clay

A REPL-friendly Clojure tool for notebooks and datavis
https://scicloj.github.io/clay/
Eclipse Public License 1.0
134 stars 13 forks source link

Weird problem with `<<!` turning into bad HTML #188

Open holyjak opened 5 days ago

holyjak commented 5 days ago

When I use Clay to eval the top-level expression (k/md "TEST! <<! TEST2") then it works just fine. But if I instead insert the same code at line 46 of https://github.com/scicloj/wolframite/blob/b9172d54999031e7259758a4a86764ad1c80a5c8/notebooks/advanced/packages.clj and try to render the whole file, then it turns into

<p>TEST! &lt;<!-- TEST2</p--></p>

I've tried to replace a part with &lt;&lt;&excl; but got the same result.

daslu commented 4 days ago

Thanks, @holyjak!

We should look into that.

For now, if this blocks your work on Wolframite, you may try adding a postprocessing function that would fix the broken HTML.

See the :post-process example in the Clay API examples.