Deprecate the previewFrontMatter setting

Switch to always hiding the frontmatter and then allowing markdown-it plugins to render it properly if they wish. `previewFrontMatter: "show"` is also not very useful since it usually results in a jumble of text at the top of the file

This is required with the new performance work to avoid re-tokenizing the document  multiple times during rendering
This commit is contained in:
Matt Bierner
2019-01-09 19:05:55 -08:00
parent e325cce9bc
commit 1bbc0e3b4d
6 changed files with 27 additions and 41 deletions

View File

@@ -68,7 +68,7 @@ export class MarkdownContentProvider {
const nonce = new Date().getTime() + '' + new Date().getMilliseconds();
const csp = this.getCspForResource(sourceUri, nonce);
const body = await this.engine.render(markdownDocument, config.previewFrontMatter === 'hide');
const body = await this.engine.render(markdownDocument);
return `<!DOCTYPE html>
<html>
<head>