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 ELK Renderer

smolblackholesmolblackhole498 downloads

Re-enables the ELK (Eclipse Layout Kernel) renderer for Mermaid diagrams.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates4

Re-enables the ELK (Eclipse Layout Kernel) layout engine for Mermaid diagrams in Obsidian.

ELK layout in action

What this plugin does

  • Adds %% elk %% marker support. Put the marker inside any Mermaid block and that diagram gets ELK layout.
  • Can optionally load Mermaid 11.16.0 from the plugin instead of Obsidian's older built-in Mermaid. This is the switch for newer diagram types like xychart-beta, cynefin-beta, or railroad-beta.
  • Preserves your existing frontmatter. look: handDrawn, theme: neutral, and other config values stay intact.

[!tip] Start simple Add %% elk %% to a diagram. That is usually all you need.

[!question] Want more control? See docs/advanced-settings.md.

Quick start

Add %% elk %% inside any Mermaid block and that diagram gets ELK layout:

```mermaid
%% elk %%
flowchart LR
    A[Start] --> B[Analyze]
    B --> C[Done]
```

[!example]- Example renders Here is what ELK layout looks like compared to stock dagre:

ELK flowchart with hand drawn look

ELK also works on newer diagram types when you enable bundled Mermaid 11:

XY chart Architecture diagram

docs/mermaid-11-examples.md has a full showcase with prerendered images and copyable source snippets.

Installation

Community plugins

  1. Open Settings, Community plugins.
  2. Search for Mermaid ELK Renderer.
  3. Install and enable.

Manual

  1. Download main.js, manifest.json, and styles.css from the latest GitHub release.
  2. Create a folder named mermaid-elk-renderer in your vault's plugin folder.
  3. Copy the three files in.
  4. Enable the plugin.

Settings

Open Settings, Community plugins, Mermaid ELK Renderer.

Setting What it does
Debug logging Logs plugin activity to the developer console. THIS DATA WILL NOT LEAVE YOUR DEVICE OR BE SENT OVER THE INTERNET
Use bundled Mermaid 11 Load Mermaid 11.16.0 from the plugin. Turn this on when a diagram from the official Mermaid docs does not work in stock Obsidian.
Apply elk to all diagrams Route every Mermaid diagram through ELK, marker or not.
Override existing layout Replace an existing config.layout with elk.
Escape numbered labels Prevent labels like 1. Step from triggering Markdown list rendering inside Mermaid.
Default Mermaid look / theme Set global look and theme defaults for routed diagrams.

[!warning] Restart after changing settings The plugin refreshes previews on change, but a full Obsidian restart is still the cleanest reset.

[!danger] Danger zone The regex overrides in advanced settings are for real edge cases. If your diagrams already work, leave them alone. If they do not, open an issue.

More docs

  • Advanced settings
  • Mermaid 11 example showcase
  • Support and debug reports
  • Development notes
  • Official Mermaid docs

Try the examples in Obsidian

The examples/ folder contains ready-to-use Markdown files. Copy them into your vault, enable the plugin, and open them in Obsidian to see the diagrams render live.

  • examples/Mermaid-11.16-layout-comparison.md — dagre vs. elk side by side
  • examples/Mermaid-11.16-charts.md — pie and XY chart
  • examples/Mermaid-11.16-cynefin-railroad.md — cynefin framework and railroad diagrams
  • examples/Mermaid-11.16-er-state-arch-gantt.md — ER, state, architecture, gantt, and tree view

License

MIT

HealthExcellent
ReviewSatisfactory
About
Re-enable the ELK layout engine for Mermaid diagrams and apply ELK layouts on a per-diagram basis by adding %% elk %% to the code block. Keep default Mermaid rendering for other diagrams, preserve custom classDef styling, and respect Obsidian's light/dark color scheme.
VisualizationDrawingCharts
Details
Current version
1.2.0
Last updated
3 weeks ago
Created
4 months ago
Updates
4 releases
Downloads
498
Compatible with
Obsidian 1.10.3+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
smolblackholesmolblackhole
GitHubsmolblackhole
  1. Community
  2. Plugins
  3. Visualization
  4. Mermaid ELK Renderer

Related plugins

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Mermaid Tools

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

Charts

Easily create interactive charts in your notes.

Kroki

Render Kroki diagrams.

Simple mind map

A mind map that combines aesthetics and functionality. 一个颜值与功能并存的思维导图。

Life Tracker

Capture and visualize the data that matters in your life.

tldraw

Integration with tldraw, allowing users to draw and edit content on a virtual whiteboard.

Charts View

Visualize data from your notes with plots and graphs.

draw.io

Create and edit diagrams with draw.io (diagrams.net), locally and offline.

Bases Charts

Bases views for scatter, line, and bar charts.