Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPing <5123601+pingren@users.noreply.github.com>2022-11-02 11:09:32 +0300
committerGitHub <noreply@github.com>2022-11-02 11:09:32 +0300
commit7fbec6dcc9262947012eb4dcbe763e6ec7b62ef0 (patch)
treeeed46e31fdf004f1f413251d8a532e7b22d6baf2 /extensions
parentad94ce6435507ec66847d6a7c45f355bec2a97f8 (diff)
Fix KaTeX equation numbering in notebook preview (#156276)
Fixes https://github.com/microsoft/vscode/issues/155888
Diffstat (limited to 'extensions')
-rw-r--r--extensions/markdown-math/notebook/katex.ts3
1 files changed, 3 insertions, 0 deletions
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<void>) {
.katex-error {
color: var(--vscode-editorError-foreground);
}
+ .katex-block {
+ counter-reset: katexEqnNo mmlEqnNo;
+ }
`;
// Put Everything into a template