LaTeX render not working in reading mode

Hello. On edit mode, LaTeX looks like this:

But looks like this in reading mode:

It looks like you’re putting the opening $$ delimiter on the same line as other text. Obsidian only fully supports when they’re on their own line.

Supported:

If
$$
a
$$
then b.

Not supported:

If $$
a
$$ then b.