Using the API

Warning

THE API IS STILL UNDER DEVELOPMENT!!!!
DO NOT USE IN ANY PLUGIN OR PUBLIC PROJECT!!!!!

Basic Usage

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