Trevixal API
    Preparing search index...

    The slice of the Mermaid API this package touches. Structural, so the real mermaid module, a lazily loaded copy, or a test double all fit, and the package itself never has to depend on Mermaid.

    interface MermaidLike {
        initialize?(config: Record<string, unknown>): void;
        render(id: string, code: string): Promise<{ svg: string }>;
    }
    Index
    • Parameters

      • config: Record<string, unknown>

      Returns void

    • Parameters

      • id: string
      • code: string

      Returns Promise<{ svg: string }>