andreykolygin221 downloadsRenders PlantUML from .puml files and markdown code blocks.
A plugin for Obsidian that renders PlantUML/Mermaid from diagram files and from markdown code blocks.
.puml, .mermaid, .mmd, .marmaid) with two modes:View (diagram)Edit (source code with line numbers).png.svg.txt (ASCII Art)```plantuml```mermaidView Code and diagramZoom overlay with drag-to-pan and zoom controlsSave as PNG / Save as SVG)```plantuml |500View Code modehttps://kroki.io)http://localhost:8000)SVG and PNGnpm install
npm run build
Copy these files into:
<YourVault>/.obsidian/plugins/puml-viewer/
Files:
main.jsmanifest.jsonstyles.cssversions.jsonThen enable the plugin in Settings → Community plugins.
.puml, .mermaid, .mmd, .marmaid) and run command:Open current diagram file in viewerView and Edit modes in the toolbar.The dedicated viewer gives you a diagram-first workspace for standalone files, with quick switching back to the editable source when you need to adjust the markup.
Source editing stays in the same view, so you can iterate on PlantUML without leaving the file context.
Basic block:
```plantuml
@startuml
Bob -> Alice: hello
@enduml
```
Mermaid block:
```mermaid
flowchart LR
A --> B
```
Block with width hint:
```plantuml |500
@startuml
Bob -> Alice: hello
@enduml
```
|500 means max diagram block width in pixels.View Code to toggle source/diagramZoom to open fullscreen overlayPNG or SVGRendered markdown blocks stay inside the note preview, which makes them usable for documentation, specs, and presentation notes without opening a separate file.
For larger diagrams, the fullscreen zoom overlay adds navigation controls and drag-to-pan, so dense schemes remain readable.
Export actions are available directly from the rendered block when you need to reuse the diagram outside Obsidian.
Server type: PlantUML / Kroki / LocalPlantUML URL (example: https://www.plantuml.com/plantuml)Kroki URL (example: https://kroki.io)Local URL (example: http://localhost:8000)Kroki diagram type: PlantUML / MermaidImage format: default render format for viewer (SVG or PNG)Embedded block default view: show diagram or code firstEmbedded diagram alignment: left / center / right (default center)PlantUML, Kroki, or Local) to generate SVG/PNG/TXT output.