Render Mermaid source into the provided container and return the SVG element.
Mermaid source text to render.
Target element where the SVG is inserted.
Mermaid theme name used for rendering.
Rendered SVG element, or null when rendering fails.
This function loads Mermaid lazily on first use and sanitizes SVG output.
Render Mermaid source into the provided container and return the SVG element.