Using the API
THE API IS STILL UNDER DEVELOPMENT!!!!
DO NOT USE IN ANY PLUGIN OR PUBLIC PROJECT!!!!!
Render a file to an html string:
const currentFile = app.workspace.getActiveFile();
let html = await WebpageHTMLExport.api.renderFileToString(currentFile, {});
// options are left empty see below for options definitions