---
title: VitePress Mermaid Renderer
publishedAt: "2025-03-15"
summary: A VitePress plugin that transforms static Mermaid diagrams into interactive,
  dynamic visualizations with zoom, pan, fullscreen, and more.
tags: [VitePress, Mermaid, Plugin, Documentation, Diagrams, Interactive, JavaScript, TypeScript, vitepress-plugin-mermaid]
language: "en"
type: "project"
status: "published"
---

<div align="center">

# VitePress Mermaid Renderer

Transform your static Mermaid diagrams into interactive, dynamic visualizations
in VitePress. This powerful plugin brings life to your documentation by enabling
interactive features like zooming, panning, and fullscreen viewing.

</div>

## Key Features

- **Smooth Zooming**: Capable of zooming in and out for better readability.
- **Intuitive Navigation**: Easy panning allows for exploring complex diagrams.
- **Code Copy**: Extract the Mermaid source code with a single click.
- **View Reset**: Instantly restore the diagram to its default view.
- **Fullscreen Mode**: View diagrams in a distraction-free fullscreen mode.
- **Theme Integration**: Automatically adapts to Light and Dark modes.
- **Download Options**: Export diagrams as SVG, PNG, or JPG.

## How It Works

Your Mermaid diagrams spring to life automatically. The plugin detects Mermaid
code blocks (marked with `mermaid` language) and transforms them into
interactive diagrams equipped with a powerful toolbar.

## Links

- [NPM Package](https://www.npmjs.com/package/vitepress-mermaid-renderer)
- [GitHub Repository](https://github.com/sametcn99/vitepress-mermaid-renderer)
- [Live Examples](https://vitepress-mermaid-renderer.vercel.app/)
