mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
![Matt Bierner](/assets/img/avatar_default.png)
Fixes #142022 We added simple latex language support recently, so use this instead of our old `markdown-math` language
104 lines
2.5 KiB
JSON
104 lines
2.5 KiB
JSON
{
|
|
"name": "markdown-math",
|
|
"displayName": "%displayName%",
|
|
"description": "%description%",
|
|
"version": "1.0.0",
|
|
"icon": "icon.png",
|
|
"publisher": "vscode",
|
|
"license": "MIT",
|
|
"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
|
|
"engines": {
|
|
"vscode": "^1.54.0"
|
|
},
|
|
"categories": [
|
|
"Other"
|
|
],
|
|
"capabilities": {
|
|
"virtualWorkspaces": true,
|
|
"untrustedWorkspaces": {
|
|
"supported": true
|
|
}
|
|
},
|
|
"main": "./out/extension",
|
|
"browser": "./dist/browser/extension",
|
|
"activationEvents": [],
|
|
"contributes": {
|
|
"languages": [
|
|
{
|
|
"id": "markdown-math",
|
|
"aliases": []
|
|
}
|
|
],
|
|
"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": "latex"
|
|
}
|
|
},
|
|
{
|
|
"scopeName": "markdown.math.inline",
|
|
"path": "./syntaxes/md-math-inline.tmLanguage.json",
|
|
"injectTo": [
|
|
"text.html.markdown"
|
|
],
|
|
"embeddedLanguages": {
|
|
"meta.embedded.math.markdown": "latex"
|
|
}
|
|
}
|
|
],
|
|
"notebookRenderer": [
|
|
{
|
|
"id": "markdownItRenderer-katex",
|
|
"displayName": "Markdown it KaTeX renderer",
|
|
"entrypoint": {
|
|
"extends": "markdownItRenderer",
|
|
"path": "./notebook-out/katex.js"
|
|
}
|
|
}
|
|
],
|
|
"markdown.markdownItPlugins": true,
|
|
"markdown.previewStyles": [
|
|
"./notebook-out/katex.min.css",
|
|
"./preview-styles/index.css"
|
|
],
|
|
"configuration": [
|
|
{
|
|
"title": "Markdown Math",
|
|
"properties": {
|
|
"markdown.math.enabled": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "%config.markdown.math.enabled%"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"scripts": {
|
|
"compile": "npm run build-notebook",
|
|
"watch": "npm run build-notebook",
|
|
"build-notebook": "node ./esbuild"
|
|
},
|
|
"dependencies": {
|
|
"@iktakahiro/markdown-it-katex": "https://github.com/mjbvz/markdown-it-katex.git"
|
|
},
|
|
"devDependencies": {
|
|
"@types/markdown-it": "^0.0.0",
|
|
"@types/vscode-notebook-renderer": "^1.60.0"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/microsoft/vscode.git"
|
|
}
|
|
}
|