Skip to content

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

  1. Ask Gemini to generate any Mermaid diagram code
  2. The code block is automatically replaced with the rendered diagram
  3. Click the </> Code button to view source code
  4. Click the 📊 Diagram button to switch back to diagram view
  5. 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
Mermaid diagram rendering

Open source project. Star us on GitHub if you like it ⭐.