mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00: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:
parent
9e548239ea
commit
8b688986b7
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue