A SilverBullet plug that renders ```plantuml code blocks as inline SVG diagrams.
Diagrams can be rendered either through a remote PlantUML server (default) or via a local PlantUML executable.
Install via SilverBullet's Library Manager:
- Open the command palette and run
Library: Install. - Paste the URI of this plug's
PLUG.md:
https://github.com/confirm/silverbullet-plantuml/blob/main/PLUG.md
The library page is installed at Library/confirm/PlantUML in your space.
Check the PLUG.md for the configuration & usage of the plug.
Install Node.js dependencies via make:
make installFor local development, symlink the repo into your space's library so SilverBullet picks up changes:
mkdir -p ~/myspace/Library/development
ln -s "$PWD" ~/myspace/Library/development/plantumlTo clean the working tree:
make cleanBuild the plug via make:
make buildNote
This produces plantuml.plug.js & plantuml.plug.js.map (i.e. make plug-js), and bumps the version (i.e. make bump-version).
SilverBullet syncs the file automatically — run Plugs: Reload in the command palette to reactivate after a rebuild.