Commit e102387
committed
TextMate rules for Markdown math formula syntax highlighting (#222)
VS Code 1.58 [1] (June 2021) introduced syntax highlighting for Markdown
math formulas [2]. To adapt the coloring to Nord's style new TextMate
rules with the following scopes have been added:
- `text.html.markdown constant.character.math.tex` - targets constants
like `\displaystyle` and `\left`.
- `text.html.markdown constant.character.math.tex` - targets `$$`
definition markers.
- `text.html.markdown punctuation.definition.function.math.tex` -
targets the `\` (backslash) function definition marker.
- `text.html.markdown punctuation.math.operator.latex` - targets
operators like `=`.
[1]: https://code.visualstudio.com/updates/v1_58
[2]: https://code.visualstudio.com/updates/v1_58#_markdown-math-formula-syntax-highlighting
Co-authored-by: Sven Greb <[email protected]>
Closes GH-2211 parent 373729a commit e102387
1 file changed
+31
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1095 | 1095 | | |
1096 | 1096 | | |
1097 | 1097 | | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
1098 | 1129 | | |
1099 | 1130 | | |
1100 | 1131 | | |
| |||
0 commit comments