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

draw.io Blocks

dydy50 downloads

An Obsidian plugin for editing and rendering draw.io diagrams directly inside Markdown code blocks using the hosted diagrams.net editor.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates5

Edit and render draw.io diagrams directly inside Markdown code blocks using the hosted diagrams.net editor.

Supports desktop and mobile.

Features

  • Renders drawio code blocks as SVG previews
  • Opens diagrams.net when a preview is selected
  • Autosaves changes to the original Markdown block
  • Supports Obsidian light and dark themes
  • Optionally stores diagrams as compressed XML

Requirements

An internet connection is required to load the hosted diagrams.net editor and generate previews.

Installation

Install draw.io Blocks from Settings → Community plugins → Browse.

For manual installation, copy main.js, manifest.json, and styles.css into:

<vault>/.obsidian/plugins/obsidian-drawio-blocks/

Then reload Obsidian and enable the plugin.

Usage

Run Insert inline draw.io diagram from the command palette, or create an empty drawio code block:

```drawio

```

Select the rendered preview to open the diagrams.net editor. Changes are saved automatically to the Markdown block.

Settings

Compress diagram XML

Stores diagrams using draw.io's compressed XML format.

This reduces Markdown block size, but makes the contents less readable and produces less useful Git diffs.

Existing diagrams are converted the next time they are opened and saved.

Commands

  • Insert inline draw.io diagram
  • Refresh draw.io previews
  • Reset draw.io editor settings

Privacy and security

The editor and preview renderer are loaded from https://embed.diagrams.net. Diagram XML is passed to the hosted iframe through the diagrams.net embed protocol.

For more information, visit draw.io's security documentation and privacy policy.

Development

Requires Node.js 20 or newer.

npm ci
npm run dev

Before releasing:

npm run format
npm run format:check
npm run lint
npm run build

Release

Update the version, commit the changes, create a matching Git tag, and push both:

npm version <version> --no-git-tag-version

git add -A
git commit -m "<message>"

git tag <version>
git push
git push origin <version>

Attribution

This plugin uses the hosted diagrams.net editor and is not affiliated with or endorsed by diagrams.net.

HealthExcellent
ReviewSatisfactory
About
Edit and render draw.io diagrams directly inside Markdown code blocks using the hosted diagrams.net editor. Supports desktop and mobile.
ImagesDrawingMarkdown
Details
Current version
1.0.5
Last updated
2 weeks ago
Created
2 weeks ago
Updates
5 releases
Downloads
50
Compatible with
Obsidian 1.1.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
dydydeyixtan
GitHubdeyixtan
  1. Community
  2. Plugins
  3. Images
  4. draw.io Blocks

Related plugins

Ink

Handwriting and drawing directly between paragraphs using a digital pen, stylus, or Apple pencil.

TTRPG Tools - Maps

A toolbox for interactive fantasy maps.

Image Captions

Add captions to images with inline Markdown and link support. The caption format is compatible with the Commonmark spec and other Markdown applications.

Importer

Convert your data to Markdown files you can use in Obsidian. Works with Apple Notes, OneNote, Evernote, Notion, Google Keep, and many other formats.

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Mermaid Tools

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

Outliner

Work with your lists like in Workflowy or Roam Research.

Linter

Format and style your notes. Linter can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular Markdown contents like list, italics, and bold styles; and more with the use of custom rule options.

Custom Frames

Turn web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.

Various Complements

Complete words similar to auto-completion in an IDE.