quantorconsulting / mkdocs_build_plantuml

MkDocs plugin to help generate your plantuml images locally or remotely as files (NOT inline)
MIT License
57 stars 15 forks source link

PlantUML.js support #30

Open yarons opened 8 months ago

yarons commented 8 months ago

There's a project called PlantUML.js which renders PlantUML is pure JS without Java.

This may provide further flexibility in terms of dark mode and dynamic loading and won't require a pre-rendering process at all. I was thinking about maybe integrating this as part of this project in addition to the Java remote and local options.

This is the link to this project: https://github.com/plantuml/plantuml.js

christo-ph commented 8 months ago

Looks good. But would mean to rewrite a lot of code, maybe a complete new plugin. Advantage would be, that there is no dependency to a server a binary anymore.

Have to think about that.

yarons commented 8 months ago

I'm not sure, maybe the first phase would be incorporating the JS library internally to render SVG or PNG output like the current offering and later on maybe thinking about the necessity of conversion in the first place (the implementation is a little slow so rendering an image it's a pretty good option for now).