},
};
});
+ const renderedAST = djot.renderAST(ast);
const doc = getDOM(template);
const result = getDOM(`${djot.renderHTML(ast)}`);
const headElement = domutils.findOne(
{ createNew: true },
),
);
+ promises.push(
+ Deno.writeTextFile(
+ `${DESTINATION}/${pageRef}/index.ast`,
+ renderedAST,
+ { createNew: true },
+ ),
+ );
promises.push(
Deno.writeTextFile(
`${DESTINATION}/${pageRef}/source.djot`,