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

@@ -1,4 +1,5 @@
test/**
test-workspace/**
src/**
tsconfig.json
out/test/**

View File

@@ -128,21 +128,12 @@ textarea:focus {
}
p {
margin-bottom: 1.5em;
}
li > p {
margin-bottom: 0;
}
/* don't space 2 paragraphs too far apart */
p + p {
margin-top: -0.8em;
margin-bottom: 0.7em;
}
ul,
ol {
margin-bottom: 1.5em;
margin-bottom: 0.7em;
}
hr {

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;
}
}