Embed and preview .xmind mind map files directly in your Obsidian notes.
```xmind-pal code blocks to embed mind maps in any note.%%xmind-pal%% comments for lightweight, non-intrusive embedding. Renders in Reading Mode; stays hidden in Live Preview..xmind file in its default application for editing.main.js, manifest.json, and styles.css from the latest release..obsidian/plugins/.xmind pal and copy the three files into it.The plugin supports two embedding methods: code blocks and comments. Both accept the same syntax for referencing xmind files.
Add an xmind-pal code block in any note:
Use the property name configured in settings (default: xmind):
```xmind-pal
```
The note must have a frontmatter property containing the xmind file link:
---
xmind: "![[my-mindmap.xmind]]"
---
Specify a different property name:
```xmind-pal
property: my-mindmap
```
```xmind-pal
![[diagram.xmind]]
```
```xmind-pal
[[diagram.xmind]]
```
```xmind-pal
file: diagram.xmind
```
Property values accept any of these formats:
![[file.xmind]] — embed wikilink[[file.xmind]] — standard wikilinkfile.xmind — bare file nameFor a lighter-weight alternative, use %%xmind-pal%% comments. Comments render in Reading Mode only and stay hidden in Live Preview, keeping your writing flow uncluttered. They can also be placed inside callouts.
%%xmind-pal%%
The same syntaxes are supported inside comments:
%%xmind-pal property: my-mindmap%%
%%xmind-pal ![[diagram.xmind]]%%
%%xmind-pal [[diagram.xmind]]%%
%%xmind-pal file: diagram.xmind%%
Inside a callout:
> [!note] Mind map
> %%xmind-pal%%
| Setting | Description | Default |
|---|---|---|
| Default property | Frontmatter property name used when code block is empty | xmind |
| Render mode | Thumbnail (XMind preview image) or Online (XMind embed service) | Thumbnail |
| Region | XMind embed service region: Global (xmind.app) or China (xmind.cn). Only visible in online mode. |
Global |
| Viewer height | CSS height for the embedded viewer | 500px |
| Show toolbar | Display a toolbar above the viewer with file name and open-externally button | On |
| Double-click to open | Double-click the toolbar to open the xmind file with the default application. Only visible when toolbar is shown. | On |
Reads the preview image that XMind stores inside every .xmind file (Thumbnails/thumbnail.png) and displays it as a responsive image. This is the recommended mode for most users.
Uses the xmind-embed-viewer library to render .xmind files via an iframe pointing to XMind's embed service.
Thumbnail mode: No network access is required. The plugin reads the .xmind file from your vault and extracts the embedded preview image locally. No data leaves your device.
Online mode: Loads the XMind embed viewer from https://www.xmind.app/embed-viewer (Global region) or https://www.xmind.cn/embed-viewer (China region). Your .xmind file data is sent to the iframe via postMessage and processed by XMind's JavaScript code. An active internet connection is required.
No telemetry, analytics, or tracking is included in this plugin. The plugin does not collect, store, or transmit any user data.
xmind-embed-viewer (MIT) — XMind embed viewer library by XMind Ltd.fflate (MIT) — High-performance ZIP decompression by 101arrowz.