goessner / mdmath

LaTeX Math for Markdown inside of Visual Studio Code.
MIT License
751 stars 56 forks source link

Syntax colouring doesn't work on single dollars. #101

Closed ericrbg closed 3 years ago

ericrbg commented 3 years ago

Summary

When trying to write KaTeX in single dollars, the syntax colouring does not work, and insteads displays everything in one colour.

Expected behavior

The syntax colouring to work, as it does in double dollars.

Steps to reproduce

  1. Write maths in double dollars

single dollars example double dollars example

Code example

$s_i(v_j) = \begin{cases} c(v_j) & \text{if } (v_i, v_j) \in E \\ 0 & \text{otherwise.} \end{cases}$

$$ ABC DEF \sin(t) \begin{cases} \end{cases} $$

Related links

Environment

     Operating system: Windows 10 Pro
       VSCode version: 1.50.0
Markdown+Math version: 2.5.1
goessner commented 3 years ago

works now as expected (version 2.6) ... grafik