kroki icon indicating copy to clipboard operation
kroki copied to clipboard

Create a Kroki plugin for Obsidian text editor

Open ggrossetie opened this issue 3 years ago • 4 comments

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.

ggrossetie avatar May 29 '21 12:05 ggrossetie

Bit of a hack, but: https://github.com/gregzuro/obsidian-kroki works...

gregzuro avatar Jun 23 '21 19:06 gregzuro

ooh exciting! 🎉 I will give it a try later this week 😃

ggrossetie avatar Jun 23 '21 22:06 ggrossetie

@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:

image

But not so great with dark theme:

image

Anyway, good work 👍🏻

ggrossetie avatar Jul 03 '21 15:07 ggrossetie

@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.

gregzuro avatar Jul 06 '21 03:07 gregzuro

Sorry for that, what's the syntax of this plugin ? use code block with kroki string?

write kroki support diagram syntax here?

Fashaun avatar Aug 01 '23 07:08 Fashaun

Closing, take a look at: https://github.com/gregzuro/obsidian-kroki

ggrossetie avatar Aug 14 '23 14:08 ggrossetie