diff options
Diffstat (limited to 'extensions/markdown-math/notebook/katex.ts')
-rw-r--r-- | extensions/markdown-math/notebook/katex.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extensions/markdown-math/notebook/katex.ts b/extensions/markdown-math/notebook/katex.ts index f6b683ffcb6..ee68b15d61b 100644 --- a/extensions/markdown-math/notebook/katex.ts +++ b/extensions/markdown-math/notebook/katex.ts @@ -43,10 +43,12 @@ export async function activate(ctx: RendererContext<void>) { document.head.appendChild(styleTemplate); const katex = require('@iktakahiro/markdown-it-katex'); + const macros = {}; markdownItRenderer.extendMarkdownIt((md: markdownIt.MarkdownIt) => { return md.use(katex, { globalGroup: true, enableBareBlocks: true, + macros }); }); } |