kroki
kroki copied to clipboard
Create a Kroki plugin for Obsidian text editor
Obsidian is an extensible text editor and provides an extension API for third-party plugins: https://help.obsidian.md/Advanced+topics/Third-party+plugins.
Would be nice to integrate Kroki into this text editor.
Bit of a hack, but: https://github.com/gregzuro/obsidian-kroki works...
ooh exciting! 🎉 I will give it a try later this week 😃
@gregzuro Seems to be working fine. Is it possible to use SVG instead of PNG? It might be neat to have an option on Kroki to generate "dark mode" compatible diagrams.
Using light theme it looks great:
But not so great with dark theme:
Anyway, good work 👍🏻
@gregzuro Seems to be working fine. Is it possible to use SVG instead of PNG? It might be neat to have an option on Kroki to generate "dark mode" compatible diagrams.
I think that I am using svg ( https://github.com/gregzuro/obsidian-kroki/blob/master/main.ts#L53 ) ?
I ran into the light/dark issue as well, though. Need to look into it.
Sorry for that, what's the syntax of this plugin ? use code block with kroki string?
write kroki support diagram syntax here?
Closing, take a look at: https://github.com/gregzuro/obsidian-kroki