mava / Nova-LaTeX

LaTeX Support for Nova
https://extensions.panic.com/extensions/info.varisco/info.varisco.LaTeX/
MIT License
3 stars 0 forks source link

Why `$$` math blocks are parsed as `invalid`? #7

Closed byte-sourcerer closed 2 years ago

byte-sourcerer commented 2 years ago

https://github.com/mava/Nova-LaTeX/blob/8e0009865df917cb31780e1f098834d2b72ed273/LaTeX.novaextension/Syntaxes/LaTeX.xml#L46

The following math block is parsed as latex.math.displaystyle.invalid, which results in strange highlighting...

$$
\bar{\beta}_i(t) = 
\begin{cases}
    0 & t \ge \tau_i, \\
    1 & t < \tau_i
\end{cases}
$$
CleanShot-2022-06-08-16 04 21
mava commented 2 years ago

Because “LaTeX doesn’t officially support $$.” See also this and this.