From 7fbec6dcc9262947012eb4dcbe763e6ec7b62ef0 Mon Sep 17 00:00:00 2001 From: Ping <5123601+pingren@users.noreply.github.com> Date: Wed, 2 Nov 2022 16:09:32 +0800 Subject: [PATCH] Fix KaTeX equation numbering in notebook preview (#156276) Fixes https://github.com/microsoft/vscode/issues/155888 --- extensions/markdown-math/notebook/katex.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extensions/markdown-math/notebook/katex.ts b/extensions/markdown-math/notebook/katex.ts index 299ab9373de..631b3ac51c5 100644 --- a/extensions/markdown-math/notebook/katex.ts +++ b/extensions/markdown-math/notebook/katex.ts @@ -33,6 +33,9 @@ export async function activate(ctx: RendererContext) { .katex-error { color: var(--vscode-editorError-foreground); } + .katex-block { + counter-reset: katexEqnNo mmlEqnNo; + } `; // Put Everything into a template