d2-obsidian icon indicating copy to clipboard operation
d2-obsidian copied to clipboard

[feature request] Allow theme selection per diagram

Open jasal82 opened this issue 2 years ago • 2 comments

The theme should be selectable on a per-diagram basis, e.g. by adding a preamble to the d2 code block which contains the settings and is then removed by the plugin before forwarding it to d2.

jasal82 avatar Oct 19 '23 12:10 jasal82

Right. This is built into D2, but I think the Obsidian plugin hasn't been updated to pick those up. Will do, thanks!

https://d2lang.com/tour/vars/#configuration-variables

alixander avatar Oct 19 '23 19:10 alixander

If all the config-variables could be used . I'm looking at the layout-engine variable specifically.

eriktalvi avatar Oct 25 '23 06:10 eriktalvi