diff --git a/src/components/DocumentView/CodeBlock/highlight.ts b/src/components/DocumentView/CodeBlock/highlight.ts index c3e2db9543..bcfdad2eb3 100644 --- a/src/components/DocumentView/CodeBlock/highlight.ts +++ b/src/components/DocumentView/CodeBlock/highlight.ts @@ -29,11 +29,9 @@ type InlineIndexed = { inline: any; start: number; end: number }; type PositionedToken = ThemedToken & { start: number; end: number }; -let counts = { - blocks: 0, - lines: 0, - characters: 0, -} +let blockCount = 0; +let lineCount = 0; +let charCount = 0; /** * Highlight a code block while preserving inline elements. @@ -53,9 +51,9 @@ export async function highlight(block: DocumentBlockCode): Promise {