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
217 stars 12 forks source link

Feature Request: JavaScript Implementation #19

Open aboy021 opened 1 year ago

aboy021 commented 1 year ago

I realise that this is a big ask, but the current plugin is really just a wrapper for a command line application. It would be great if it was a JS plugin that worked out of the box and worked on mobile devices too. I think there would be broader benefits to D2 as well.

alixander commented 1 year ago

yup, D2 is all in Go, which is compilable to WebAssembly, which can run in JS contexts. this is in progress: https://github.com/terrastruct/d2/pull/436