Mathpix / mathpix-markdown-it

Markdown rendering + Latex extras (equations, tables, ...), with conversion features, for the scientific community
MIT License
465 stars 42 forks source link

Incorrect equation render with new line after $$ #333

Open vladtimss opened 1 week ago

vladtimss commented 1 week ago

Hi! Thanks for your project! It's cool.

Could you explain me please what's going wrong on my side with such syntax

$$
f(x) = 
\begin{cases}
a + b\\
c + d
\end{cases}
$$

$$
A =
\begin{matrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9
\end{matrix}
$$

i see invalid result of rendering image

At the same time i see correct rendering if your snip workspace

image

Could you explain my mistake? I tried use 1.3.8 version, but it did not help me.

I use monaco-editor for code syntax writing and than use your package to render it.