Use latex as language mode inside markdown math blocks

Fixes #142022

We added simple latex language support recently, so use this instead of our old `markdown-math` language
This commit is contained in:
Matt Bierner 2022-02-03 08:45:55 -08:00
parent 870ab1e647
commit 7987c49a08
No known key found for this signature in database
GPG key ID: 099C331567E11888
2 changed files with 3 additions and 60 deletions

View file

@ -1,56 +0,0 @@
{
"comments": {
"lineComment": "%"
},
// symbols used as brackets
"brackets": [
[
"{",
"}"
],
[
"[",
"]"
],
[
"(",
")"
]
],
"autoClosingPairs": [
{
"open": "{",
"close": "}"
},
{
"open": "[",
"close": "]"
},
{
"open": "(",
"close": ")"
}
],
"surroundingPairs": [
[
"(",
")"
],
[
"[",
"]"
],
[
"{",
"}"
],
[
"'",
"'"
],
[
"\"",
"\""
]
]
}

View file

@ -26,8 +26,7 @@
"languages": [ "languages": [
{ {
"id": "markdown-math", "id": "markdown-math",
"aliases": [], "aliases": []
"configuration": "./language-configuration.json"
} }
], ],
"grammars": [ "grammars": [
@ -43,7 +42,7 @@
"text.html.markdown" "text.html.markdown"
], ],
"embeddedLanguages": { "embeddedLanguages": {
"meta.embedded.math.markdown": "markdown-math" "meta.embedded.math.markdown": "latex"
} }
}, },
{ {
@ -53,7 +52,7 @@
"text.html.markdown" "text.html.markdown"
], ],
"embeddedLanguages": { "embeddedLanguages": {
"meta.embedded.math.markdown": "markdown-math" "meta.embedded.math.markdown": "latex"
} }
} }
], ],