clerk

timothypratley 2025-09-20T18:43:56.133459Z

Hi 👋 Does Clerk differentiate between $math$ and $$math$$? The former usually means "inline" and the later "display" (according to katex terminology). Specifically I'm struggling with using the https://github.com/nextjournal/markdown to parse $$math$$ and getting [:span.formula ""] "math" [:span.formula ""] which indicates $$ is not a thing. I think the answer is, that's not supported by the markdown parser, just wanting to check if I'm missing something.

✅ 1
borkdude 2025-09-20T18:45:45.150609Z

single $ is inline, $$ is block

timothypratley 2025-09-20T20:30:25.854159Z

Experimenting a bit here's what I found:

"hi $math$ there"
=> [:p [:span.formula "math"]]
{edit] ^^ as expected but...
"hi $$math$$ there"
=> [:p "hi " [:span.formula ""] "math" [:span.formula ""] " there"]
Was confusing me... (not what I expected) but
"$$math$$"
=> [:figure.formula "math"]
So displayMode blocks are represented as :figure.formula and inline as :span.formula and blocks are only allows to start a line (not be inline). which makes sense.

borkdude 2025-09-20T20:31:59.352709Z

the definition of "block" is that it starts on a new line

borkdude 2025-09-20T20:32:50.717999Z

in the first two examples you use one actual and one expected, but the example in the expected differs from the actual

timothypratley 2025-09-20T20:34:51.412199Z

thanks, sorry I wasn't clear, I update the message to try to be more clear - TLDR it all makes sense now thanks for your help.

👍 1