terrastruct / d2-obsidian

The official D2 plugin for Obsidian. D2 is a modern diagram scripting language thats turns text to diagrams.
https://d2lang.com
Mozilla Public License 2.0
226 stars 12 forks source link

Fix d2 location path resolution for cross-platform support #14

Closed dlecklider closed 1 year ago

dlecklider commented 1 year ago

Presently the d2 Obsidian plugin seems to only function with *nix platforms due to the "env" path delimiter being hardcoded to ":"

This can be easily fixed by using Node's path.delimiter variable.