mirror of
https://github.com/Microsoft/vscode
synced 2024-10-05 19:02:54 +00:00
Persist KaTeX macros across render calls (#129747)
* Use KaTeX "globalGroup" for markdown rendering * Use KaTeX "globalGroup" for markdown rendering
This commit is contained in:
parent
a4eb4d6884
commit
4a69c3dda7
|
@ -45,6 +45,6 @@ export async function activate(ctx: {
|
|||
|
||||
const katex = require('@iktakahiro/markdown-it-katex');
|
||||
markdownItRenderer.extendMarkdownIt((md: markdownIt.MarkdownIt) => {
|
||||
return md.use(katex);
|
||||
return md.use(katex, {'globalGroup': true});
|
||||
});
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ export function activate(context: vscode.ExtensionContext) {
|
|||
extendMarkdownIt(md: any) {
|
||||
if (isEnabled()) {
|
||||
const katex = require('@iktakahiro/markdown-it-katex');
|
||||
return md.use(katex);
|
||||
return md.use(katex, {'globalGroup': true});
|
||||
}
|
||||
return md;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue