mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Use markdown renderer for text/latex (#139154)
Fixes #123144 Uses the standard markdown renderer for `text/latex` outputs. This enables support for python outputs such as: ```python %%latex Given : $\pi = 3.14$ , $\alpha = \frac{3\pi}{4}\, rad$ ```
This commit is contained in:
@@ -46,7 +46,8 @@
|
||||
"displayName": "Markdown it renderer",
|
||||
"entrypoint": "./notebook-out/index.js",
|
||||
"mimeTypes": [
|
||||
"text/markdown"
|
||||
"text/markdown",
|
||||
"text/latex"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
@@ -598,7 +598,6 @@ const _mimeTypeInfo = new Map<string, MimeTypeInfo>([
|
||||
['image/git', { alwaysSecure: true, supportedByCore: true }],
|
||||
['image/svg+xml', { supportedByCore: true }],
|
||||
['application/json', { alwaysSecure: true, supportedByCore: true }],
|
||||
[Mimes.latex, { alwaysSecure: true, supportedByCore: true }],
|
||||
[Mimes.text, { alwaysSecure: true, supportedByCore: true }],
|
||||
['text/html', { supportedByCore: true }],
|
||||
['text/x-javascript', { alwaysSecure: true, supportedByCore: true }], // secure because rendered as text, not executed
|
||||
|
||||
Reference in New Issue
Block a user