Take document as parameter instead document components

This commit is contained in:
Matt Bierner
2018-12-27 19:28:57 -06:00
parent df5a295484
commit 7086fb76ec
4 changed files with 14 additions and 12 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(sourceUri, config.previewFrontMatter === 'hide', markdownDocument.getText());
const body = await this.engine.render(markdownDocument, config.previewFrontMatter === 'hide');
return `<!DOCTYPE html>
<html>
<head>