This plugin is a page type plugin that renders drawings made with the Obsidian Excalidraw plugin (.excalidraw.md and .excalidraw files) as full-page SVG drawings you can pan and zoom. Like CanvasPage, it uses a page frame of its own ("excalidraw"): the drawing fills the page, with a togglable left sidebar.
Note
For information on how to add, remove or configure plugins, see the Configuration page.
A drawing gets a page at its file’s path (Drawings/Plan.excalidraw.md → /Drawings/Plan.excalidraw), titled after the file and tagged excalidraw. A drawing stored as Markdown is taken out of the regular notes (so it isn’t also rendered as text), but keeps its frontmatter: publish, draft, password and other filters apply to it as to a note. Bases list drawings with their real paths.
Supported:
- Shapes, text, arrows, lines and freedraw strokes in Excalidraw’s hand-drawn style
- Images, either stored in the drawing or embedded from the vault (matched by file name)
- Embedded notes (
[[note]]), rendered with their content, and embedded web pages (as sandboxed iframes) - Light and dark mode, using Excalidraw’s own dark-mode colours
- Both
jsonandcompressed-jsondrawing data
Configuration
This plugin accepts the following configuration options:
enableInteraction: Whether to enable pan and zoom (drag, scroll wheel, and zoom buttons). Defaults totrue.darkMode:"auto"(follows the site’s light/dark mode),"light"or"dark". Defaults to"auto".exportPadding: Padding around the drawing, in pixels. Defaults to20.
Default options
- source: "@quartz-community/obsidian-plugin-excalidraw"
enabled: true
options:
enableInteraction: true
darkMode: auto
exportPadding: 20To use the standard three-column layout instead of the full-page frame:
layout:
byPageType:
excalidraw:
template: defaultAPI
- Category: Page Type, Filter, Component
- Function name:
ExternalPlugin.ExcalidrawPage(). - Source:
quartz-community/obsidian-plugin-excalidraw - Install:
npx quartz plugin add @quartz-community/obsidian-plugin-excalidraw