Add math grammar/language to markdown math blocks

Fixes #124719
This commit is contained in:
Matt Bierner
2021-06-17 18:01:02 -07:00
parent 334fb18d6f
commit 2ae31a96cf
8 changed files with 4129 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
{
"fileTypes": [],
"injectionSelector": "L:meta.paragraph.markdown - (comment, string, markup.math.inline.markdown)",
"patterns": [
{
"include": "#math_inline"
}
],
"repository": {
"math_inline": {
"name": "markup.math.inline.markdown",
"contentName": "meta.embedded.math.markdown",
"match": "(?<=\\s|^)(\\${1,2})(.+?)(\\${1,2})(?=\\s|$)",
"captures": {
"1": {
"name": "punctuation.definition.math.begin.markdown"
},
"2": {
"patterns": [
{
"include": "text.html.markdown.math#math"
}
]
},
"3": {
"name": "punctuation.definition.math.begin.markdown"
}
}
}
},
"scopeName": "markdown.math.inline"
}