Trevixal API
    Preparing search index...

    Interface ExportOptions

    interface ExportOptions {
        selectionOnly?: boolean;
        serialize?: (
            exporter: DocumentExporter,
            doc: EditorNode,
            context: ExportContext,
        ) => Promise<string | Uint8Array<ArrayBufferLike>> | null;
        theme?: ThemeSnapshot;
        title?: string;
        transform?: (doc: EditorNode) => EditorNode;
    }
    Index
    selectionOnly?: boolean

    Export the selection instead of the whole document.

    serialize?: (
        exporter: DocumentExporter,
        doc: EditorNode,
        context: ExportContext,
    ) => Promise<string | Uint8Array<ArrayBufferLike>> | null

    Write the file somewhere else, off the main thread, say. Null (or no option) leaves it to the exporter here, as for a format that needs the page's DOM.

    Palette override; the one the editor is rendering in by default.

    title?: string

    Title override; the first heading by default.

    transform?: (doc: EditorNode) => EditorNode

    The document as it goes out, from the document as it is: conditional content settled by its variables, say.