Renders one diagram into an element and makes it accessible.
The Mermaid API
Where the diagram goes. Its text is the diagram's source unless text is given
text
Optional
The source, when it is not the element's own text
Figure options
The MAIDR figure set on the drawing
Error when the diagram does not parse, render or convert
Renders one diagram into an element and makes it accessible.