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:
Matt Bierner
2022-01-19 13:26:52 -08:00
committed by GitHub
parent c047af40b2
commit 920a00d09d
2 changed files with 2 additions and 2 deletions
@@ -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