Mermaid Diagram Rendering
Automatically render Mermaid code as visual diagrams.
Overview
When Gemini outputs Mermaid code blocks (flowcharts, sequence diagrams, Gantt charts, etc.), Voyager automatically detects and renders them as interactive diagrams.
Key Features
- Auto-detection: Supports
graph,flowchart,sequenceDiagram,gantt,pie,classDiagram, and all major Mermaid diagram types - Toggle view: Switch between rendered diagram and source code with one click
- Fullscreen mode: Click the diagram to enter fullscreen with zoom and pan support
- Dark mode: Automatically adapts to page theme
How to Use
- Ask Gemini to generate any Mermaid diagram code
- The code block is automatically replaced with the rendered diagram
- Click the </> Code button to view source code
- Click the 📊 Diagram button to switch back to diagram view
- Click the diagram area to enter fullscreen
Fullscreen Controls
- Scroll wheel: Zoom in/out
- Drag: Pan the diagram
- +/-: Toolbar zoom buttons
- ⊙: Reset view
- ✕ / ESC: Close fullscreen

