MCPcopy Create free account
hub / github.com/emersonbottero/vitepress-plugin-mermaid

github.com/emersonbottero/vitepress-plugin-mermaid @V2.03

Chat with this repo
repository ↗ · DeepWiki ↗ · release V2.03 ↗ · + Follow
13 symbols 24 edges 5 files 0 documented · 0% 18 cross-repo links updated 15mo agoV2.0.8 · 2022-09-24★ 17713 open issues

Browse by type

Functions 12 Types & classes 1
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

vitepress-plugin-mermaid

Add mermaid support for Vitepress. It detects any dark theme that are set in body as long as it has dark in the name

See the docs 📕
and a complex example 😎

Install

npm i vitepress-plugin-mermaid -s

Setup it up

Add plugin

//.vite.config.ts
import { defineConfig } from "vite";
import { MermaidPlugin } from "vitepress-plugin-mermaid";

export default defineConfig({
  plugins: [MermaidPlugin()],
});

Add markdown

// .vitepress/config.js

import MermaidPlugin from "vitepress-plugin-mermaid";

module.exports = {
  ...
  markdown: {
    config: MermaidPlugin,
  },
  ...
}

Use in any Markdown file



```mermaid
flowchart TD
  Start --> Stop
```

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 12
Interface 1

Languages

TypeScript100%

Modules by API surface

src/mermaid-markdown.ts8 symbols
src/index.ts5 symbols

For agents

$ claude mcp add vitepress-plugin-mermaid \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page