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

@@ -23,6 +23,40 @@
"browser": "./dist/browser/extension",
"activationEvents": [],
"contributes": {
"languages": [
{
"id": "markdown-math",
"aliases": [],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "markdown-math",
"scopeName": "text.html.markdown.math",
"path": "./syntaxes/md-math.tmLanguage.json"
},
{
"scopeName": "markdown.math.block",
"path": "./syntaxes/md-math-block.tmLanguage.json",
"injectTo": [
"text.html.markdown"
],
"embeddedLanguages": {
"meta.embedded.math.markdown": "markdown-math"
}
},
{
"scopeName": "markdown.math.inline",
"path": "./syntaxes/md-math-inline.tmLanguage.json",
"injectTo": [
"text.html.markdown"
],
"embeddedLanguages": {
"meta.embedded.math.markdown": "markdown-math"
}
}
],
"notebookRenderer": [
{
"id": "markdownItRenderer-katex",