Theia API Documentation v1.73.0
    Preparing search index...
    MermaidDiagram: React.FC<MermaidDiagramProps> = ...

    Renders a mermaid diagram definition into a sanitized, themed SVG. While the definition cannot be parsed and the content is still incomplete (e.g. streaming) it shows a "rendering" hint. Once complete, an unparseable definition shows an error placeholder. The SVG is sanitized via sanitizeDiagram.

    The MermaidViewer keeps this component mounted across collapse and source toggles, so it renders the (relatively expensive) diagram only when the definition or theme actually changes, not on every toggle.