Header prerendering now adds markup directly and adds distill-prerendered tag which TEMPLATE webcomponents now respect

This commit is contained in:
Ludwig Schubert
2019-02-15 17:35:48 -08:00
parent 5d83dbfd61
commit cdfa045a36
8 changed files with 170 additions and 152 deletions
+1
View File
@@ -37,6 +37,7 @@ const options = { runScripts: 'outside-only', QuerySelector: true, virtualConsol
JSDOM.fromFile(program.inputPath, options).then(dom => {
const window = dom.window;
const document = window.document;
const HTMLElement = window.HTMLElement;
const data = new transforms.FrontMatter;
data.inputHTMLPath = program.inputPath; // may be needed to resolve relative links!