Rich View

approved

by sdking

Render draw.io and Visio diagrams inline in your notes — zoom, pan, multi-page tabs, shape links, a magnifier, and third-party shape libraries. More file formats planned. - This plugin has not been manually reviewed by Obsidian staff.

27 downloadsUpdated 4d agoMIT
Rich View demo

🔍 Zoom  ·  🖱️ Pan  ·  📄 Multi-page  ·  🔗 Shape links  ·  🔎 Magnifier  ·  📦 Third-party libs  ·  🌙 Dark mode

Latest release Total downloads License Obsidian community plugin

中文文档 · Usage · Shape Libraries · Controls · Settings · Installation

WeChat public account
Follow on WeChat for more Obsidian plugins & tools

🧩 Also check out Rich Table — interactive tables with merges, typed columns, styles, and wikilinks: GitHub · Install from Store

Render rich file formats inline inside your Obsidian notes — with smooth zoom, pan, multi-page tabs, shape links, and full support for third-party shape libraries. Today that means draw.io .drawio and Visio .vsdx files; more formats (PPT, Word, CAD, ...) are planned.


Usage

Place your diagram file anywhere in the vault, then embed it with a fenced rich-view code block:

```rich-view
file=my-diagram.drawio
```

Every other field is an explicit key=value pair, separated by |, in any order:

```rich-view
file=my-diagram.drawio|page=my_page|height=600|zoom=80|offset=190,34
```
KeyFormatExampleDescription
filekey=valuefile=my-diagram.drawioRequired. Vault-relative path or bare name.
pagekey=valuepage=my_pageWhich page to display, by exact name. Default: first page.
page-indexkey=valuepage-index=2Which page to display, by 1-based position. Ignored if page= is also set.
heightkey=valueheight=600Viewer height in pixels. Default: 400.
zoomkey=valuezoom=80Initial zoom level (%). Default: auto-fit.
offsetkey=valueoffset=190,34Initial pan position. Default: centred.

Only file= is required; the rest can appear in any order.


Shape Libraries

If your diagram uses extended shape libraries (AWS, Azure, GCP, Cisco, Electrical, IBM, and many more), the plugin will detect this automatically and show a download banner the first time you open it.

Click Download — the missing libraries are fetched from draw.io's official repository, saved locally, and reused for all future diagrams. The banner also has a Settings shortcut if you prefer to manage libraries manually.

Go to Settings → Rich View → Shape Libraries to:

  • Browse and download official libraries by category
  • Use Auto-detect from vault to find all libraries needed by your existing diagrams
  • Set a custom folder for your own shape files

Controls

ActionResult
Scroll wheelZoom in / out
DragPan the diagram
Two-finger pinchPinch-zoom (touch / mobile)
Double-clickReset to initial view
Drag bottom edgeResize viewer height
Open file in system default editor
Auto-fit to the viewer's current size
🔍Toggle the magnifier
Save current view back into the code block
Page tabsSwitch pages (multi-page diagrams)

Tip: pan and zoom to the view you want, then click ⊙. The code block updates in-place and that view is restored every time you open the note. Once a specific zoom/offset is saved this way, double-click restores that saved view rather than auto-fitting — click ⛶ to get back to a fresh auto-fit (e.g. after resizing the viewer), then ⊙ again to save it.

Shape links

Hover any shape to see a button. Click it to attach a link to a vault note or external URL. To follow the link, click the shape (exact key depends on the Click behavior setting).

Magnifier

Click 🔍 to inspect fine detail without changing your zoom/pan. A circular loupe follows the cursor at a fixed magnification; + / - change its size. Scroll wheel still zooms the main view as usual. Press Esc or click anywhere else to exit.


Dark mode

The viewer automatically adapts to Obsidian's dark theme — no configuration needed.


Settings

SettingDescription
Zoom modifier keyPlain scroll or Ctrl+scroll to zoom.
Click behaviorWhether a plain click or Ctrl+click follows a shape link.
Custom library folderA vault folder for your own shape files.
Shape LibrariesDownload official libraries; auto-detect from vault.

Installation

Community plugin marketplace (recommended)

  1. Settings → Community plugins → Browse
  2. Search Rich View → Install → Enable

Manual

Download main.js, manifest.json, and styles.css from the latest release and copy them to <vault>/.obsidian/plugins/rich-view/.


Known limitations

  • Some shapes from draw.io's table or extended shape sets may not render perfectly.
  • ![[file.drawio]] wiki-embed syntax is not supported — use the code block instead.
  • In Live Preview, exiting the code block editor can cause a small scroll shift (under investigation).

Star History

Star History Chart


License

MIT © 2026 sdking.xing

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.