Diagram Features

Markdown Viewer can convert code-based diagrams into high-resolution images during document export. This is one of its most powerful features.

Supported Diagram Types

Type Syntax Best For
PlantUML plantuml Sequence, class, activity, use case diagrams
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
ECharts echarts Presentation-grade charts and dashboards

How It Works

  1. Write diagrams as code in your Markdown file
  2. Preview them rendered in the browser
  3. Export to DOCX, PDF, HTML, or EPUB — diagrams become high-resolution 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 it — it becomes a crisp, high-resolution image in DOCX, PDF, HTML, or EPUB.


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
PlantUML System modeling, UML diagrams, sequences Class diagrams, sequence diagrams, activity diagrams
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
ECharts Presentation-grade charts, dashboards Sales reports, KPIs, gauges, radar charts

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