MikhailKravets / mkdocs_puml

Inline PlantUML diagrams in your MkDocs documentation
MIT License
26 stars 4 forks source link

PlantUML.js support #34

Open yarons opened 8 months ago

yarons commented 8 months ago

Is your feature request related to a problem? Please describe. I had to develop a whole GitHub Actions workflow to deal with puml conversion to SVG in order to display diagrams as part of my documentation.

Describe the solution you'd like Adding a PlantUML.js support, thus eliminating the need for pre-processing and Java.

Describe alternatives you've considered I developed a GitHub Actions workflow to start a Java application to convert all the puml parts to SVG and then add them to the MkDocs generated HTML as an <img>.

Additional context This is an example of this native JS implementation: https://plantuml.github.io/plantuml.js

MikhailKravets commented 8 months ago

Thank you for this suggestion @yarons! I didn't know that PlantUML is available through WASM. If we have this integrated to the package it can potentially solve #33.

yarons commented 8 months ago

Oh no, thank you for all your awesome work! Hoping to use this Dark/Light theme implementation soon, I also need it :)