Diagram Features
Markdown Viewer can convert code-based diagrams into high-resolution images during Word export. This is one of its most powerful features.
Supported Diagram Types
| Type | Syntax | Best For |
|---|---|---|
| Mermaid | mermaid |
Flowcharts, sequences, architecture |
| Vega/Vega-Lite | vega, vega-lite |
Data visualization |
| drawio | drawio |
Architecture, network, UML |
| Canvas | canvas |
Mind maps, knowledge graphs |
| Infographic | infographic |
Statistics, presentations |
| Graphviz DOT | dot |
Network graphs, dependencies |
How It Works
- Write diagrams as code in your Markdown file
- Preview them rendered in the browser
- Export to Word — diagrams become high-resolution PNG images
Example Workflow
Write this in Markdown:
```mermaid
graph TD
A[Start] --> B{Decision}
B -->|Yes| C[Action 1]
B -->|No| D[Action 2]
```
See it rendered in the browser as a beautiful flowchart.
Export to Word — it becomes a crisp, high-resolution image.
Time Savings
| Task | Traditional | With Markdown Viewer |
|---|---|---|
| 15 flowcharts | ~2 hours | ~5 minutes |
| Modify one diagram | Redraw + re-export | Edit code + re-export |
| Quarterly report (5 charts) | ~30 minutes | ~3 minutes |
Diagram Comparison
When to Use Each Type
| Diagram Type | Use Cases | Examples |
|---|---|---|
| Mermaid | Process flows, system architecture, sequences | Workflows, API flows, class diagrams |
| Vega/Vega-Lite | Data-driven charts | Sales data, analytics, dashboards |
| drawio | Professional diagrams, rich shape libraries | AWS/Azure architecture, UML, network topology |
| Canvas | Spatial layouts, free positioning | Mind maps, concept maps, planning boards |
| Infographic | Presentations, statistics | KPIs, comparisons, summaries |
| Graphviz DOT | Complex relationships, hierarchies | Dependency trees, org charts, state machines |
Quality & Resolution
All diagrams are rendered at high resolution for crisp output:
- PNG format for maximum compatibility
- Transparent backgrounds where supported
- Theme-aware fonts matching your document style
- Scalable output based on your settings
Explore Each Type
- Mermaid Diagrams — The most versatile option
- Vega/Vega-Lite — For data visualization
- drawio — For professional architecture diagrams
- Canvas — For spatial mind maps
- Infographic — For presentations
- Graphviz DOT — For complex graphs