Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] Allow theme selection per diagram #37

Open
jasal82 opened this issue Oct 19, 2023 · 2 comments
Open

[feature request] Allow theme selection per diagram #37

jasal82 opened this issue Oct 19, 2023 · 2 comments

Comments

@jasal82
Copy link

jasal82 commented Oct 19, 2023

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.

@alixander
Copy link
Contributor

alixander commented Oct 19, 2023

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

@eriktalvi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants