mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Enable rendering of bare math blocks in notebooks
Fixes #133390 Adds support for math blocks that just start with `\begin` instead of being wrapped in dollar signs
This commit is contained in:
@@ -44,6 +44,9 @@ export async function activate(ctx: RendererContext<void>) {
|
|||||||
|
|
||||||
const katex = require('@iktakahiro/markdown-it-katex');
|
const katex = require('@iktakahiro/markdown-it-katex');
|
||||||
markdownItRenderer.extendMarkdownIt((md: markdownIt.MarkdownIt) => {
|
markdownItRenderer.extendMarkdownIt((md: markdownIt.MarkdownIt) => {
|
||||||
return md.use(katex, { globalGroup: true });
|
return md.use(katex, {
|
||||||
|
globalGroup: true,
|
||||||
|
enableBareBlocks: true,
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
"@iktakahiro/markdown-it-katex@https://github.com/mjbvz/markdown-it-katex.git":
|
"@iktakahiro/markdown-it-katex@https://github.com/mjbvz/markdown-it-katex.git":
|
||||||
version "4.0.1"
|
version "4.0.1"
|
||||||
resolved "https://github.com/mjbvz/markdown-it-katex.git#2bf0b89c6c22ef0b585f55ccab66d1f7c5356bea"
|
resolved "https://github.com/mjbvz/markdown-it-katex.git#820d9025ad84937eb3f9f7efbc1be7595e20b19f"
|
||||||
dependencies:
|
dependencies:
|
||||||
katex "^0.13.0"
|
katex "^0.13.0"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user