d2-obsidian
d2-obsidian copied to clipboard
error when importing .d2 files from same folder as the .md
Steps
-
create x.d2 x: { shape: circle }
-
create x.md ```d2 ...@x ```
Expected:
x.md preview renders circle with x (see behaviour of VS Code plugin, open same files in VS Code and preview x.md)
Actual:
error
D2 Compilation Error: err: failed to compile -: -:1:1: failed to import "x.d2": open x.d2: no such file or directory
Environment
(btw: i'm also using Unitade plugin to edit .d2 files directly in Obsidian)
Obsidian 1.4.14
- D2 plugin 1.1.4
- Unitade 1.0.2
macOS Sonoma 14.1.2
VS Code 1.84
- D2 plugin 0.8.8