Hello!
I've just released a Mermaid plugin for Dokka.
It's drawing images via mermaid.js (embedded) in comment blocks.
Feel free to open issues with ideas or bugs you found.
https://github.com/glureau/dokka-mermaid
👍 7
⭐ 7
i
Ignat Beresnev
03/15/2022, 12:54 PM
Great job! 🙂 I was just about to ask if you still had any problems. Happy to see it working!
The only problem I see now is that it works by overriding
HtmlRenderer
- if there are multiple plugins that do that, they might override each other and end up broken.
I have a couple of ideas how to make the implementation more robust, maybe even by introducing a new extension point to HtmlRenderer that would allow providing custom rendering for various languages, we'll see.
I'll keep you posted 🙂
🙏 2
g
Grégory Lureau
03/15/2022, 7:09 PM
Customization per language could be really good! Also I found that the lang 'mermaid' was actually not set in the unit test. Is there a whitelist of allowed languages? (issue fixed by upgrading Dokka)