TextMate rules for Markdown math formula syntax highlighting#222
Merged
arcticicestudio merged 1 commit intoJul 14, 2021
Merged
Conversation
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 <development@svengreb.de> GH-221
svengreb
approved these changes
Jul 14, 2021
arcticicestudio
added a commit
that referenced
this pull request
Jul 14, 2021
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 <development@svengreb.de> Closes GH-221
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #221
Before
After