cloud
cloud copied to clipboard
TeX editor indicates a syntax error on $$\text{if $x>0$}$$
The TeX editor highlights the innermost $ signs in $\text{if $x>0$}$ in red, incorrectly indicating a syntax error.
Other variations, such as $\text{if $x>0$}$ or \begin{equation*}\text{if $x>0$}\end{equation*} work fine.
Perhaps syntax highlighting is done by an external library --- if that's the case and someone tells me which it is, I'm happy to carry the issue upstream.