This commit is contained in:
@ -0,0 +1,5 @@
|
||||
# Markdown Math
|
||||
|
||||
**Notice:** This extension is bundled with Visual Studio Code. It can be disabled but not uninstalled.
|
||||
|
||||
Adds math rendering using [KaTeX](https://katex.org) to VS Code's built-in markdown preview and markdown cells in notebooks.
|
2
vscode-server-linux-x64-web/extensions/markdown-math/dist/extension.js
vendored
Normal file
2
vscode-server-linux-x64-web/extensions/markdown-math/dist/extension.js
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
vscode-server-linux-x64-web/extensions/markdown-math/icon.png
Normal file
BIN
vscode-server-linux-x64-web/extensions/markdown-math/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 903 B |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
1
vscode-server-linux-x64-web/extensions/markdown-math/notebook-out/katex.min.css
vendored
Normal file
1
vscode-server-linux-x64-web/extensions/markdown-math/notebook-out/katex.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
||||
{"name":"markdown-math","displayName":"%displayName%","description":"%description%","version":"1.0.0","icon":"icon.png","publisher":"vscode","license":"MIT","aiKey":"0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255","engines":{"vscode":"^1.54.0"},"categories":["Other","Programming Languages"],"capabilities":{"virtualWorkspaces":true,"untrustedWorkspaces":{"supported":true}},"main":"./dist/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","punctuation.definition.math.end.markdown":"latex"}}],"notebookRenderer":[{"id":"vscode.markdown-it-katex-extension","displayName":"Markdown it KaTeX renderer","entrypoint":{"extends":"vscode.markdown-it-renderer","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%"},"markdown.math.macros":{"type":"object","additionalProperties":{"type":"string"},"default":{},"description":"%config.markdown.math.macros%","scope":"resource"}}}]},"repository":{"type":"git","url":"https://github.com/microsoft/vscode.git"}}
|
@ -0,0 +1 @@
|
||||
{"displayName":"Markdown Math","description":"Adds math support to Markdown in notebooks.","config.markdown.math.enabled":"Enable/disable rendering math in the built-in Markdown preview.","config.markdown.math.macros":"A collection of custom macros. Each macro is a key-value pair where the key is a new command name and the value is the expansion of the macro."}
|
@ -0,0 +1,8 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
.katex-error {
|
||||
color: var(--vscode-editorError-foreground);
|
||||
}
|
@ -0,0 +1 @@
|
||||
{"fileTypes":[],"injectionSelector":"L:text.html.markdown - (comment, string, meta.paragraph.markdown, markup.math.block.markdown, markup.fenced_code.block.markdown, markup.raw.block.markdown)","patterns":[{"include":"#double_dollar_math_block"},{"include":"#single_dollar_math_block"}],"repository":{"double_dollar_math_block":{"name":"markup.math.block.markdown","contentName":"meta.embedded.math.markdown","begin":"(?<=^\\s*)(\\${2})(?![^$]*\\${2})","beginCaptures":{"1":{"name":"punctuation.definition.math.begin.markdown"}},"end":"(.*)(\\${2})","endCaptures":{"1":{"name":"meta.embedded.math.markdown","patterns":[{"include":"text.html.markdown.math#math"}]},"2":{"name":"punctuation.definition.math.end.markdown"}},"patterns":[{"begin":"(^|\\G)","while":"(^|\\G)(?!.*(\\${2}))","patterns":[{"include":"text.html.markdown.math#math"}]}]},"single_dollar_math_block":{"name":"markup.math.block.markdown","contentName":"meta.embedded.math.markdown","begin":"(?<=^\\s*)(\\$)(?![^$]*\\$|\\d)","beginCaptures":{"1":{"name":"punctuation.definition.math.begin.markdown"}},"end":"(.*)(\\${1})","endCaptures":{"1":{"name":"meta.embedded.math.markdown","patterns":[{"include":"text.html.markdown.math#math"}]},"2":{"name":"punctuation.definition.math.end.markdown"}},"patterns":[{"begin":"(^|\\G)","while":"(^|\\G)(?!.*(\\${1}))","patterns":[{"include":"text.html.markdown.math#math"}]}]}},"scopeName":"markdown.math.block"}
|
@ -0,0 +1 @@
|
||||
{"fileTypes":[],"injectionSelector":"L:meta.paragraph.markdown - (comment, string, markup.math.inline.markdown, markup.fenced_code.block.markdown)","patterns":[{"include":"#math_inline_double"},{"include":"#math_inline_single"},{"include":"#math_inline_block"}],"repository":{"math_inline_single":{"name":"markup.math.inline.markdown","match":"(?<=\\s|\\W|^)(?<!\\$)(\\$)(.+?)(\\$)(?!\\$)(?=\\s|\\W|$)","captures":{"1":{"name":"punctuation.definition.math.begin.markdown"},"2":{"name":"meta.embedded.math.markdown","patterns":[{"include":"text.html.markdown.math#math"}]},"3":{"name":"punctuation.definition.math.end.markdown"}}},"math_inline_double":{"name":"markup.math.inline.markdown","match":"(?<=\\s|\\W|^)(?<!\\$)(\\$\\$)(.+?)(\\$\\$)(?!\\$)(?=\\s|\\W|$)","captures":{"1":{"name":"punctuation.definition.math.begin.markdown"},"2":{"name":"meta.embedded.math.markdown","patterns":[{"include":"text.html.markdown.math#math"}]},"3":{"name":"punctuation.definition.math.end.markdown"}}},"math_inline_block":{"name":"markup.math.inline.markdown","contentName":"meta.embedded.math.markdown","begin":"(?<=\\s|^)(\\${2})","beginCaptures":{"2":{"name":"punctuation.definition.math.begin.markdown"}},"end":"(\\${2})(?=\\s|$)","endCaptures":{"2":{"name":"punctuation.definition.math.end.markdown"}},"patterns":[{"include":"text.html.markdown.math#math"}]}},"scopeName":"markdown.math.inline"}
|
@ -0,0 +1 @@
|
||||
{"information_for_contributors":["This file includes some grammar rules copied from https://github.com/James-Yu/LaTeX-Workshop/blob/master/syntax/TeX.tmLanguage.json"],"name":"Markdown Math","scopeName":"text.html.markdown.math","patterns":[{"include":"#math"}],"repository":{"math":{"patterns":[{"name":"comment.line.math.tex","match":"((?<!\\\\)%)(.+)$","captures":{"1":{"name":"punctuation.definition.comment.math.tex"}}},{"name":"line.separator.math.tex","match":"(\\\\\\\\)$","captures":{"1":{"name":"punctuation.line.separator.math.tex"}}},{"name":"meta.function.math.tex","begin":"((\\\\)([a-zA-Z_]+))\\s*(\\{)","beginCaptures":{"1":{"name":"storage.type.function.math.tex"},"2":{"name":"punctuation.definition.function.math.tex"},"3":{"name":"entity.name.function.math.tex"},"4":{"name":"punctuation.definition.arguments.begin.math.tex"}},"end":"\\}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.math.tex"}},"patterns":[{"include":"$self"}]},{"captures":{"1":{"name":"punctuation.definition.constant.math.tex"}},"match":"(\\\\)([a-zA-Z_]+)\\b","name":"constant.character.math.tex"},{"captures":{"1":{"name":"punctuation.definition.constant.math.tex"}},"match":"(\\\\)(?!begin\\*\\{|verb)([A-Za-z]+)","name":"constant.other.general.math.tex"},{"match":"(?<!\\\\)\\{","name":"punctuation.math.begin.bracket.curly"},{"match":"(?<!\\\\)\\}","name":"punctuation.math.end.bracket.curly"},{"match":"\\(","name":"punctuation.math.begin.bracket.round"},{"match":"\\)","name":"punctuation.math.end.bracket.round"},{"match":"(([0-9]*[\\.][0-9]+)|[0-9]+)","name":"constant.numeric.math.tex"},{"match":"[\\+\\*/_\\^-]","name":"punctuation.math.operator.latex"}]}}}
|
Reference in New Issue
Block a user