Hello! I've just released a Mermaid plugin for Dok...
# dokka
g
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
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
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)
111 Views