Trevixal API
    Preparing search index...

    Type Alias DiagramRenderer

    DiagramRenderer: (
        code: string,
        context: DiagramRenderContext,
    ) => Promise<string> | string

    Turns diagram source into SVG/HTML markup, synchronously or not. The host supplies it (Mermaid via createMermaidRenderer, or anything else), which keeps this package free of runtime dependencies; the markup is inserted verbatim, trusted as the host's own output.

    Type Declaration