joethei / obsidian-plantuml

Generate PlantUML Diagrams inside Obsidian.md
MIT License
368 stars 18 forks source link

"Inline" plant UML file rendering #25

Closed jacob7395 closed 2 years ago

jacob7395 commented 2 years ago

When designing my system architecture using plantUML (just a quick thank you for making this extension), I would preferably store my UML in a separate file. I then use VS code while designing my diagrams.

Would it be possible to use Obisidiante inline (I'm not sure of the exact terminology) links and render the .pu files?

Hopefully, the image below demonstrates what I mean. image

yordan-pavlov commented 1 year ago

First, let me start by saying thanks for creating this PlantUML plugin for Obsidian. Sadly, the embedding of .pu(ml) files no longer appears to work (with Obsidian v0.15.9)

I've tried both .pu and .puml files and both ![PlantUML diagram](diagram.puml) and ![[diagram.puml]] syntax for embedding but no diagram is rendered in the note.

This is using a local PlantUML server, running in docker. PlantUML diagrams in plantuml code-blocks are working fine. Hover preview (CTRL + hover) of linked PlantUML files ( [PlantUML Diagram](diagram.puml) ) is working as well. Only rendering of embedded diagram files doesn't seem to work.

I would therefore request that this issue is reopened.