We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ed1fe8 commit f732547Copy full SHA for f732547
1 file changed
extensions/markdown-language-features/src/markdownEngine.ts
@@ -129,14 +129,15 @@ export class MarkdownEngine {
129
}
130
131
this.currentDocument = document.uri;
132
- this._slugCount = new Map<string, number>();
133
134
const tokens = this.tokenizeString(document.getText(), engine);
135
this._tokenCache.update(document, config, tokens);
136
return tokens;
137
138
139
private tokenizeString(text: string, engine: MarkdownIt) {
+ this._slugCount = new Map<string, number>();
140
+
141
return engine.parse(text.replace(UNICODE_NEWLINE_REGEX, ''), {});
142
143
@@ -355,4 +356,3 @@ function normalizeHighlightLang(lang: string | undefined) {
355
356
return lang;
357
358
-
0 commit comments