Support mermaid diagrams [UI]
Enable rendering of Mermaid diagrams in the UI to support visual representation of flows, graphs, and other structured diagrams within markdown or custom components.
Acceptance Criteria: • Detect and parse Mermaid code blocks. • Render diagrams using Mermaid.js in the frontend. • Ensure responsiveness • Graceful fallback or error message for invalid diagrams.
Context: This will enhance readability and improve visualization in documentation, chat responses, or agent outputs that include Mermaid syntax. Potpie uses assistant-ui for chat components in the main chat screen, this change should be compatible.
@dhirenmathur can i work on this? also could you elaborate more on where the rendering is required.
@dhirenmathur I would like to work on this issue, if its still open
@mdkaifansari04 hi, yes please go for it. thanks!
hey @mdkaifansari04 , just checking if you're still working on this? Would love to pick it up.
Yeah @into-the-night I'm on it, got involved with some acdemics stuff.