Merge from vscode cfbd1999769f4f08dce29629fb92fdc0fac53829

This commit is contained in:
ADS Merger
2020-08-06 07:08:52 +00:00
parent 9c67832880
commit 540046ba00
362 changed files with 7588 additions and 6584 deletions

View File

@@ -129,7 +129,6 @@ export class MarkdownEngine {
}
this.currentDocument = document.uri;
this._slugCount = new Map<string, number>();
const tokens = this.tokenizeString(document.getText(), engine);
this._tokenCache.update(document, config, tokens);
@@ -144,6 +143,8 @@ export class MarkdownEngine {
}
private tokenizeString(text: string, engine: MarkdownIt) {
this._slugCount = new Map<string, number>();
return engine.parse(text.replace(UNICODE_NEWLINE_REGEX, ''), {});
}
@@ -362,4 +363,3 @@ function normalizeHighlightLang(lang: string | undefined) {
return lang;
}
}