danielyaa5 / puml-for-markdown

A CLI tool to embed interactive PUML diagrams to your github markdown files.
MIT License
295 stars 61 forks source link

[Feature request] Images link instead of plantuml links #11

Open jbressand opened 10 months ago

jbressand commented 10 months ago

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)-->