Skip to content

Function: documentToHtml() ​

ts
function documentToHtml(documentData, options?): string;

Defined in: application/services/transformers/document-to-html.ts:63

Renders document data as a standalone HTML page. The document is first converted to Markdown with documentToMarkdown, then rendered with raw HTML escaped and link URLs checked by scheme, so imported content cannot inject markup. A SideDoc attribution footer is appended.

Parameters ​

ParameterType
documentDataany
options?HtmlTransformOptions

Returns ​

string