Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Mermaid Next

Nasser AlansariNasser Alansari57 downloads

Renders Mermaid diagrams using the latest version, independent of the built-in bundled version.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

Renders Mermaid diagrams using the latest version, independent of the built-in bundled version.

An Obsidian plugin that registers a mermaid-next code block and renders it with a current build of Mermaid, sourced either from a bundled copy or from the jsDelivr CDN.

Table of Contents

  • Background
  • Install
  • Usage
  • Settings
  • Scope
  • Maintainer
  • Contributing
  • License

Background

Obsidian bundles its own copy of Mermaid that lags behind upstream releases. New diagram types, syntax improvements, and bug fixes added to Mermaid aren't available in Obsidian until the next app update — which can take months.

This plugin loads Mermaid independently of Obsidian, so new diagram features are usable as soon as Mermaid ships them.

Install

Community plugin store

Search for Mermaid Next in Settings → Community plugins, then enable it.

Manual

Copy main.js, styles.css, and manifest.json into your vault at .obsidian/plugins/mermaid-next/, then enable the plugin in Settings → Community plugins.

Dependencies

None for end users — the bundled copy of Mermaid ships inside main.js. For development, see Contributing.

Usage

Use mermaid-next as the code block language:

```mermaid-next
sequenceDiagram
    participant Alice@{ type: "queue" }
    participant Bob
    Alice->>Bob: Queue message
    Bob->>Alice: Queue response
```

Any valid Mermaid syntax works — flowcharts, sequence diagrams, class diagrams, mindmaps, and more.

Settings

Changes apply on the next render — no plugin reload required.

Setting Default Description
Source Bundled Bundled uses the copy shipped with the plugin (offline, fixed version). CDN loads from jsDelivr.
Version latest CDN only. Use latest or pin a specific version like 11.15.0.
CDN cache empty Manual Download button caches the selected CDN version locally for offline use. Clear cache removes it.
Obsidian theme integration on When enabled, diagrams follow the active Obsidian theme. When disabled, Mermaid uses its default theme.
ELK layout engine on Uses ELK as the default layout engine. Produces better results for complex flowcharts.
Hand-drawn look off Renders diagrams with a sketched, hand-drawn style.
Replace Obsidian's Mermaid off Swaps window.mermaid so all built-in ```mermaid``` blocks across Obsidian also use this plugin's version. May conflict with other plugins that modify Mermaid.

Scope

This plugin's core job: render mermaid-next code blocks with a current version of Mermaid. An opt-in setting extends that coverage to plain mermaid blocks too (see Settings). No further features are planned. This narrow scope is intentional — low maintenance, long-term stability.

Maintainer

  • Nasser Alansari

Contributing

Questions and bug reports: open an issue on GitHub.

Bug fix PRs are welcome. Feature PRs that expand scope beyond rendering mermaid-next blocks are unlikely to be merged — see Scope.

Development:

bun install
bun run dev    # watch build
bun run build  # production build + typecheck
bun run lint

No sign-off or CLA required.

License

MIT © Nasser Alansari

100%
HealthExcellent
ReviewPassed
About
Render Mermaid diagrams using the latest Mermaid release independent of Obsidian's bundled copy. Use mermaid-next code blocks; load from jsDelivr CDN with a bundled offline fallback, auto-theme diagrams to Obsidian's light/dark color scheme, and support all valid Mermaid syntax.
VisualizationMarkdownTheming
Details
Current version
1.2.0
Last updated
Yesterday
Created
3 days ago
Updates
3 releases
Downloads
57
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
Nasser AlansariNasser Alansaridacrystal
GitHubdacrystal
  1. Community
  2. Plugins
  3. Visualization
  4. Mermaid Next

Related plugins

Markwhen

Create timelines, gantt charts, calendars, and more using markwhen.

AnyBlock

Take any fragment as a block and render it into multiple effects.

Advanced Canvas

Supercharge your canvas experience. Create presentations, flowcharts and more.

Minimal Theme Settings

Control the colors and fonts in Minimal Theme.

Importer

Import data from Notion, Evernote, Apple Notes, Microsoft OneNote, Google Keep, Bear, Roam, and HTML files.

Hider

Hide interface elements such as tooltips, status bar, titlebar, and more.

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Outliner

Work with your lists like in Workflowy or Roam Research.

Mermaid Tools

Improved Mermaid.js experience: visual toolbar with common elements and more.

Maps

Adds a map layout to bases so you can display notes as an interactive map view.