# 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 ## التوافق وإصلاح المشكلات ::: warning ملاحظة - **قيود Firefox**: بسبب قيود البيئة، يستخدم Firefox الإصدار 9.2.2 ولا يدعم الميزات الجديدة مثل **Timeline** أو **Sankey**. - **أخطاء الصياغة**: غالباً ما يكون فشل المعالجة بسبب أخطاء في صياغة الكود الناتج من Gemini. نحن نقوم بجمع الحالات السيئة (Bad Cases) لإصلاح أخطاء التوليد الشائعة تلقائياً في التحديثات القادمة. :::