Trevixal API
    Preparing search index...

    Interface ExportContext

    What an exporter needs beyond the document: its schema, a title, a theme.

    interface ExportContext {
        rendered?: RenderedDocument;
        schema: Schema;
        theme?: { tokens?: Readonly<Record<string, string>> };
        title: string;
    }
    Index
    rendered?: RenderedDocument

    What the editor drew that the document does not hold, highlighted code and rendered diagrams, captured by @trevixal/ui off the live editor.

    schema: Schema
    theme?: { tokens?: Readonly<Record<string, string>> }

    The palette the editor is rendering in. @trevixal/ui reads it off the live editor and passes it here, so a download matches what the author was looking at. The shape matches its ThemeSnapshot.

    title: string