Render Kroki Diagrams in Obsidian.
This plugin uses, by default, the Kroki server for rendering, but specifying an alternate one via this plugin's options is encouraged.
If you can't find an alternate, then you can host your own server as described here.
This plugin is a modified and slightly expanded version of the obsidian-plantuml plugin by Johannes Theiner.
Create a fenced codeblock using one of the diagram types supported by kroki as the language. See the Kroki site for a complete list of supported diagram types. Specify your diagram code inside the codeblock.
See kroki-test.md for examples of each of the currently supported diagram types.
Settings > Third-party plugins > Community Plugins > Browse
and search for Kroki
.
- Clone this repo
npm i
oryarn
to install dependenciesnpm run build
- Copy over
main.js
,styles.css
,manifest.json
to your vaultVaultFolder/.obsidian/plugins/obsidian-kroki/
.