Trevixal API
    Preparing search index...

    Interface HTMLDocumentOptions

    interface HTMLDocumentOptions {
        baseURL?: string;
        inlineCSS?: string;
        inlineJS?: string;
        lang?: string;
        renderNode?: (node: EditorNode) => string | null;
        scripts?: readonly string[];
        styleSheets?: readonly string[];
        theme?: HTMLDocumentTheme;
        title?: string;
    }
    Index
    baseURL?: string

    Base for resolving the URLs above, e.g. "http://localhost:5173". Also emitted as <base href> so any relative link inside the document itself resolves against the origin it came from rather than wherever the file ends up.

    inlineCSS?: string

    CSS embedded directly in the page, after the linked stylesheets.

    inlineJS?: string

    JavaScript embedded directly, after the linked scripts.

    lang?: string

    Language for <html lang>. Defaults to "en".

    renderNode?: (node: EditorNode) => string | null
    scripts?: readonly string[]

    Script URLs to load, resolved the same way.

    styleSheets?: readonly string[]

    Stylesheet URLs to link. Relative URLs are resolved against baseURL, so a document saved elsewhere still finds them.

    The palette the document was being edited in, baked into the page so it opens in that theme rather than in whatever the reader's stylesheet, or operating system, decides for it.

    title?: string

    Goes in <title>. Defaults to "Document".