MAIDR JavaScript API
    Preparing search index...
    • Renders one diagram into an element and makes it accessible.

      Parameters

      • mermaid: MermaidApi

        The Mermaid API

      • element: Element

        Where the diagram goes. Its text is the diagram's source unless text is given

      • Optionaltext: string

        The source, when it is not the element's own text

      • options: MermaidAdapterOptions = {}

        Figure options

      Returns Promise<Maidr>

      The MAIDR figure set on the drawing

      Error when the diagram does not parse, render or convert