Can not paser inline math correctly

Steps to reproduce

Type below: →

Can not parse the following line formula:

$ ax^2+bx+c=0 \left( 0 \right) $,$\Delta=b^2-4ac $
$\begin{align}
 x &= \frac{-b}{2a} + i \frac{\sqrt {4ac - b^2}}{2a} \\
 x &= \frac{-b}{2a} - i \frac{\sqrt {4ac - b^2}}{2a} \\
 i^2 &= -1
\end{align}$

Expected result

Actual result

image

Environment

  • Operating system: Windows 10 Pro, Arch Linux

no spaces after/before $

work with the first line formula if I edit to this:test$ax^2+bx+c=0 \left( 0 \right)$,$\Delta=b^2-4ac$test

But why I can’t put spaces before first $ and after last $? Also, where is the $ in the live edit model?
image

And still, the next multi-line formula is not rendered.