puml-for-markdown icon indicating copy to clipboard operation
puml-for-markdown copied to clipboard

[Feature request] Images link instead of plantuml links

Open jbressand opened this issue 1 year ago • 0 comments

puml-for-markdown can output images with the -b option. I would like my markdown to contain links to my local images files generated by puml-for-markdown instead of plantuml urls or tinyurl urls.

For exemple, here is my markdown README.md

 # Test puml
<!--![root diagram](./puml/root.puml)-->

And here is my puml file puml/root.puml :

@startuml
!include <C4/C4_Context.puml>

    Person(test, "Toto", "Test")
@enduml

When I apply the following command :

puml-for-markdown -d -b images

It creates a png file containing my shehma : images/puml/root.png But in my markdown, it created a tinyurl link. I would like my markdown to be transformed like this :

 # Test puml
![root diagram](./images/puml/root.png)<!--![root diagram](./puml/root.puml)-->

jbressand avatar Oct 31 '23 09:10 jbressand