Omni Drawio Viewer

by pavel
5
4
3
2
1
Score: 50/100

Description

Reviews

No reviews yet.

Stats

0
stars
218
downloads
0
forks
74
days
74
days
74
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
4
commits

README file from

Github

Omni Drawio Viewer

An offline, read-only multi-page Drawio viewer.

Repository layout

  • src/ — TypeScript plugin source.
  • dist/ — local build output (ignored by Git).
  • scripts/deploy.mjs — copies only runtime files into an Obsidian Vault.

Build and deploy

npm install
npm run lint
npm run build
npm run deploy:coursewiki

To deploy to another Vault, run:

npm run build
node scripts/deploy.mjs /absolute/path/to/vault

Supported files

  • .drawio and .dio: each Drawio page appears in the page selector.
  • .drawio.svg: if the export contains an embedded <mxfile>, all pages are shown; otherwise it is displayed as a safe single-page SVG.

Obsidian assigns file views by the final extension, so .drawio.svg continues to open in its normal SVG view. To use the multi-page preview for one, run Open SVG preview from the Command Palette while that file is active.

Markdown

Use a normal embed for the first page:

![[diagrams/architecture.drawio]]

Append a page name after # to embed one specific page:

![[diagrams/architecture.drawio#Deployment]]

The code block remains available when a page name contains Markdown-sensitive characters:

```drawio-preview
path: diagrams/architecture.drawio
page: Deployment
```

Development

npm install
npm run build

The plugin uses a built-in, safe SVG renderer. It does not load remote code, create runtime script elements, or use the system clipboard.