You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the grammar parses both inline and block equations as an equation node. It would be nice to parse them as inline_equation and block_equation nodes respectively, for example to highlight them differently like Helix does for LaTex. I've tried implementing this but it seems a bit tricky. We'd probably need something like a trimmed_math node that matches math without any surrounding whitespace. If this is something that you'd consider merging, I'll try to implement it. I'm also happy about any suggestions on how to best approach this.
The text was updated successfully, but these errors were encountered:
I tried integrating it into the grammar itself first, but my current implementation doesn't quite work correctly. For now I don't want to spend more time on it, as it's rather low-priority.
However, I figured that you could simply implement such a thing within the highlights.scm:
Currently, the grammar parses both inline and block equations as an
equation
node. It would be nice to parse them asinline_equation
andblock_equation
nodes respectively, for example to highlight them differently like Helix does for LaTex. I've tried implementing this but it seems a bit tricky. We'd probably need something like atrimmed_math
node that matches math without any surrounding whitespace. If this is something that you'd consider merging, I'll try to implement it. I'm also happy about any suggestions on how to best approach this.The text was updated successfully, but these errors were encountered: