Goal
Make Excalidraw diagrams created in Obsidian publish correctly to the Quartz site.
What Was Done
1. Excalidraw Plugin — Global SVG Auto-Export
Setting changed: .obsidian/plugins/obsidian-excalidraw-plugin/data.json
autoexportSVG→truedisplayExportedImageIfAvailable→true
Every time you save an Excalidraw file, the plugin now automatically writes a matching .svg file in the same folder. No manual export needed.
2. Quartz — Ignore Raw Excalidraw Files
File changed: _Tools/quartz/quartz.config.ts
Added **/*.excalidraw.md to ignorePatterns. This means:
.excalidraw.mdsource files are not published as pages.svgexports are published normally (they’re just static image files)
3. Demo File
A working demo diagram lives at:
01 Areas/Languages/German/Grammatik/German Word Order — V2 Rule.excalidraw.md
It has excalidraw-autoexport: svg in its frontmatter (belt-and-suspenders alongside the global setting). Open it in Obsidian and save once to generate the SVG.
Workflow Going Forward
Creating a new diagram
- In Obsidian, run “Excalidraw: Create new drawing” from the command palette
- It will create a
.excalidraw.mdfile (default goes to0 INBOX/, move it to the right folder) - Add
excalidraw-autoexport: svgto the frontmatter (good habit even with global setting on) - Draw your diagram and save —
.svgexports automatically to the same folder
Embedding in a note for publishing
Use the SVG, not the Excalidraw source file:
![[My Diagram.svg]]
This works in both Obsidian reading view and on the Quartz site. The .excalidraw.md file is for editing only — Quartz ignores it.
Editing an existing diagram
Open the .excalidraw.md file → switch to Excalidraw view → edit → save. The SVG updates automatically.
File Naming Convention
Keep diagram filenames descriptive. The SVG takes the same name as the source:
| Source | Published as |
|---|---|
German Word Order — V2 Rule.excalidraw.md | German Word Order — V2 Rule.svg |
Accusative Case Diagram.excalidraw.md | Accusative Case Diagram.svg |
Good Use Cases in This Vault
- German grammar — sentence structure, case relationships, verb conjugation patterns
- Topic concept maps — how ideas in a wiki topic relate to each other
- Film/show timelines or character maps — embedded in Film & TV notes
- PKM system diagrams — vault structure, workflow overviews