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 Standard

dmstorydmstory82 downloads

Render mermaid code blocks with upstream mermaid, so standard config like theme, look and themeVariables works again

Add to Obsidian
  • Overview
  • Scorecard
  • Updates4

Bring upstream mermaid back to Obsidian. Since Obsidian 1.15, ```mermaid blocks are drawn by Obsidian's own engine (lib/pele.min.js, "Pele") instead of mermaid. Pele parses the syntax fine, but it drops the decoration layer — theme, look and themeVariables are silently ignored, so a note that asks for theme: forest and look: handDrawn renders in Obsidian's plain grey style.

This plugin hands rendering back to real mermaid, so those settings work again:

---
title: Payment flow
config:
  theme: forest
  look: handDrawn
---
flowchart LR
    Pay[Pay] --> Risk{Risk ok?}
    Risk -->|no| Reject[Reject]
    Risk -->|yes| Done[Done]

Screenshot

How it works

Reading view and live preview both end up calling pele.mount(el, source, opts). The plugin wraps window.pele (its exports are getter-only, so a Object.create(pele) wrapper is used instead of mutating) and replaces mount with a mermaid renderer that returns the same controller shape (result / source / error / zoom / update / refresh / destroy) and still calls opts.onRender, so Obsidian's link post-processing keeps working.

  • One mermaid.initialize() per render: theme follows the app (theme-dark → dark), fontFamily follows --font-mermaid.
  • Frontmatter config: and %%{init}%% directives still win over those defaults.
  • securityLevel: 'strict', suppressErrorRendering: true — syntax errors become a single red line instead of an injected error diagram.
  • Bundled engine: mermaid 11.17.2 (~3.4 MB main.js).

Compatibility

Obsidian 1.15.0+ (before 1.15 the app already used mermaid 11.13)
Mobile untested — no Node APIs are used, so it should work
Diagram types everything upstream mermaid 11.13 supports; zenuml is not supported
Other plugins none required

Install

  • Community plugins: browse for "Mermaid Standard" once it is listed.
  • BRAT: add dmstory/obsidian-mermaid-standard.
  • Manual: copy main.js, manifest.json and styles.css into <vault>/.obsidian/plugins/mermaid-standard/, then enable it in Settings → Community plugins.

After enabling, scroll the open note or run the command Re-render diagrams in current note.

Limitations

The plugin hooks window.pele.mount, an internal API. A future Obsidian release may change it — when that happens the hook quietly stops applying and you get stock Pele rendering back (no crash, no data loss).

Development

npm install
npm run dev    # watch build
npm run build  # production build -> main.js

npm version patch|minor|major bumps manifest.json and versions.json via version-bump.mjs; the tag push triggers .github/workflows/release.yml, which builds and attaches main.js, manifest.json and styles.css to the GitHub release.

Review notes

The community directory's automated review reports two things worth explaining up front:

  • Dynamic code execution (eval / new Function) — this comes from the vendored mermaid bundle (one small helper inside mermaid's own code), not from plugin code. src/main.js contains no eval, no new Function and no remote code loading; everything is bundled at build time by esbuild.
  • Artifact attestations — releases are built by .github/workflows/release.yml, which attests main.js, manifest.json and styles.css with actions/attest-build-provenance, so the assets are verifiable against this repository.

The plugin makes no network requests and collects no telemetry. It only swaps one method on window.pele inside the app.

中文

Obsidian 1.15 起用自研的 Pele 引擎替换了 mermaid.js,theme / look / themeVariables 等标准 mermaid 配置不再生效。本插件接管 pele.mount,改回官方 mermaid 渲染,让这些配置恢复正常。安装后在「设置 → 第三方插件」里启用即可。

License

MIT

HealthExcellent
ReviewPassed
About
Restore upstream Mermaid rendering in Obsidian so frontmatter theme, look and themeVariables and %%{init}%% directives are honored in both reading and live preview. Render diagrams with Mermaid 11.13, use strict security and single-line error reporting, and keep Obsidian's controller shape so link post-processing still runs.
ChartsTheming
Details
Current version
1.0.3
Last updated
2 weeks ago
Created
2 weeks ago
Updates
4 releases
Downloads
82
Compatible with
Obsidian 1.15.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
dmstorydmstorydmstory
GitHubdmstory
  1. Community
  2. Plugins
  3. Charts
  4. Mermaid Standard

Related plugins

Auto Beautiful Mermaid

Smart-routes Mermaid diagrams: beautiful-mermaid for its 6 supported types, Obsidian's built-in engine for everything else.

Minimal Theme Settings

Control the colors and fonts in Minimal Theme.

Hider

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

Share Note

Instantly share/publish a note, with the full theme and content exactly like you see in Obsidian. Data is shared encrypted by default, and only you and the person you send it to have the key.

Style Settings

Adjust theme, plugin, and snippet CSS variables.

Tracker

Track occurrences and numbers in your notes.

Journalit

Trading journal with analytics, prop-firm tracking, broker imports and sync, trade reviews, and custom trading workflows.

WebNovel Assistant

An all-in-one writing studio for novel and story writers. Features accurate word count tracking, daily goals, story timeline board, plot foreshadowing manager, chapter corkboard, and character lore gr

Notion Bases

Turn any folder into a database — table, kanban board, gallery, calendar, timeline and list views powered by frontmatter.

Charts

Easily create interactive charts in your notes.