olea
December 11, 2023, 2:59pm
1
Hi:
I love and use a lot the plantuml plugin, so this code nicely works (excepting when exports, btw):
``` plantuml
@startuml
Bob -> Alice : hello
@enduml
```
My thing is, I would like to edit puml files in a native editor and keep them as independent files. I supposed they could be embbeded like this:
```plantuml
![[alice-bob.puml]]
```
But it didn’t works since the plugin understand the ![[alice-bob.puml]] as plantuml code.
Am I doing something wrong?
holroy
December 11, 2023, 9:40pm
2
It seems like you can achieve this using dataviewjs at least, since it’s not a given that a code block should respect the embed link. The following has been tested with your example code in the file muml.md
:
```dataviewjs
const uml = await dv.io.load(dv.io.normalize("muml.md"))
dv.paragraph(`
~~~plantuml
${ uml }
~~~
`)
```
Could surely be rewritten into a dv.view()
so that you could rather write something like: `$= dv.view("pumlLoad", "muml.md")`
1 Like
system
Closed
March 10, 2024, 9:41pm
3
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.