Adapt a Mermaid instance to a DiagramRenderer. Mermaid is
initialized once, on the first render, with startOnLoad: false (the
editor decides when to draw) and securityLevel: 'strict' (diagram text
is user input); config can override either. Every render call gets a
fresh id, because Mermaid renders concurrently into id-addressed elements
and two renders sharing an id would clobber each other.
Adapt a Mermaid instance to a DiagramRenderer. Mermaid is initialized once, on the first render, with
startOnLoad: false(the editor decides when to draw) andsecurityLevel: 'strict'(diagram text is user input);configcan override either. Every render call gets a fresh id, because Mermaid renders concurrently into id-addressed elements and two renders sharing an id would clobber each other.