πŸ“¦ joethei / obsidian-plantuml

Generate PlantUML Diagrams inside Obsidian.md

β˜… 506 stars β‘‚ 30 forks πŸ‘ 506 watching βš–οΈ MIT License
obsidianobsidian-mdobsidian-pluginplantuml
πŸ“₯ Clone https://github.com/joethei/obsidian-plantuml.git
HTTPS git clone https://github.com/joethei/obsidian-plantuml.git
SSH git clone git@github.com:joethei/obsidian-plantuml.git
CLI gh repo clone joethei/obsidian-plantuml
Johannes Theiner Johannes Theiner update maintenance shield 4383873 4 months ago πŸ“ History
πŸ“‚ master View all commits β†’
πŸ“ .github
πŸ“ src
πŸ“„ .eslintrc.js
πŸ“„ .gitignore
πŸ“„ LICENSE
πŸ“„ manifest.json
πŸ“„ package.json
πŸ“„ README.md
πŸ“„ styles.css
πŸ“„ tsconfig.json
πŸ“„ versions.json
πŸ“„ README.md

PlantUML Support for Obsidian

Maintenance GitHub manifest.json dynamic (path) libera manifesto Render PlantUML Diagrams in Obsidian
Demonstration This plugin uses either the PlantUML Online Server, or a local .jar file for rendering. You can also host your own server (Docker / JEE / PicoWeb) and specify its address in the settings. Please note that using the local rendering method is not as performant as using a server.

Usage

Create a fenced codeblock using plantuml as the language. Specify your plantuml code inside. To generate a diagram with higher resolution use plantuml-svg You can also use plantuml-ascii to generate ASCII Art. Documentation on Plantuml can be found on plantuml.com

Linking to notes in vault

Since the syntax for weblinks in PlantUML is the same for as for Wikilinks in Obsidian, a special syntax is used: [[[Your other note]]] For the content of such a link refer to the obisidian documentation. Normal web links are described here

Including an .puml file

⚠️ Only works when using local rendering
This works just as describe in the official documentation.

Examples

~~~markdown ``plantuml BobΒ ->Β AliceΒ :Β hello AliceΒ ->Β Wonderland:Β hello WonderlandΒ ->Β next:Β hello nextΒ ->Β Last:Β hello LastΒ ->Β next:Β hello nextΒ ->Β WonderlandΒ :Β hello WonderlandΒ ->Β AliceΒ :Β hello AliceΒ ->Β Bob:Β hello ` ~~~ results in: ![](http://www.plantuml.com/plantuml/png/SyfFEhH0r-xG0iUSpEJKGmki3Yt8ICt9oUS2yo5IuVbvAQb5EObvAN1PX114ILvgHGbSKW48G08GAP_4ObGfa011NSWMe2X1IA2x6w46oUr0_y6a0000) ~~~markdown `plantuml-ascii BobΒ ->Β AliceΒ :Β hello AliceΒ ->Β Wonderland:Β hello WonderlandΒ ->Β next:Β hello nextΒ ->Β Last:Β hello LastΒ ->Β next:Β hello nextΒ ->Β WonderlandΒ :Β hello WonderlandΒ ->Β AliceΒ :Β hello AliceΒ ->Β Bob:Β hello ` ~~~ results in: ` β”Œβ”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β” β”‚Bobβ”‚ β”‚Aliceβ”‚ β”‚Wonderlandβ”‚ β”‚nextβ”‚ β”‚Lastβ”‚ β””β”€β”¬β”€β”˜ β””β”€β”€β”¬β”€β”€β”˜ β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜ β””β”€β”¬β”€β”€β”˜ β””β”€β”¬β”€β”€β”˜ β”‚ hello β”‚ β”‚ β”‚ β”‚ │──────────────>β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ hello β”‚ β”‚ β”‚ β”‚ │─────────────────>β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ hello β”‚ β”‚ β”‚ β”‚ β”‚ ─────────────────> β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ hello β”‚ β”‚ β”‚ β”‚ β”‚ ──────────────> β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ hello β”‚ β”‚ β”‚ β”‚ β”‚ <────────────── β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ hello β”‚ β”‚ β”‚ β”‚ β”‚ <───────────────── β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ hello β”‚ β”‚ β”‚ β”‚ β”‚<─────────────────│ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ hello β”‚ β”‚ β”‚ β”‚ β”‚<──────────────│ β”‚ β”‚ β”‚ β”Œβ”€β”΄β”€β” β”Œβ”€β”€β”΄β”€β”€β” β”Œβ”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β” β”Œβ”€β”΄β”€β”€β” β”Œβ”€β”΄β”€β”€β” β”‚Bobβ”‚ β”‚Aliceβ”‚ β”‚Wonderlandβ”‚ β”‚nextβ”‚ β”‚Lastβ”‚ β””β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”˜ ` ## Known issues Not all methods of using PlantUML support all different diagrams. Following are a few known issues. - ASCII can only ever generate Sequence diagrams - The PicoWeb server does not support clickable links in png diagrams - Some languages like chinese are not rendered correctly -> Switch to SVG rendering ## Installation Settings > Community plugins > Community Plugins > Browse and search for PlantUML`.