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

Custom arguments to d2 compiler #40

Open onsah opened 1 year ago

onsah commented 1 year ago

Hi, first of all thanks for this great plugin and diagram tool!

I am using this plugin in my notebook and I am trying to center the diagram generated instead of left aligning. I found that there is a --center flag for this in the compiler, but the plugin doesn't provide a way to pass arguments to the compiler. Would it be possible to allow users to pass arguments? Thank you.

Screenshot 2023-10-29 at 1 54 07 PM

I would like this to be centered intead of being left aligned.