Port markdown filter: PlantUML
Port GitLab Kramdown's PlantUML filter to a markdown render hook or shortcode. It seems like we'll need to do this from the frontend given the discussion here: https://github.com/gohugoio/hugo/issues/8398
Current version: https://gitlab.com/gitlab-org/ruby/gems/gitlab_kramdown/-/blob/main/lib/gitlab_kramdown/converter/gitlab_html.rb?ref_type=heads#L42
References
Render with JavaScript in-browser
- https://plantuml.com/code-javascript-asynchronous
- https://paul.dugas.cc/post/plantuml-shortcode/
- Example from another theme: https://github.com/search?q=repo%3Agoogle%2Fdocsy%20plantuml&type=code (https://www.docsy.dev/docs/adding-content/diagrams-and-formulae/#uml-diagrams-with-plantuml)
Render with JavaScript in the build
Open questions
- These diagrams get created on an external server and load from there. This means they don't work offline. Do we still want to support these?
Edited by Sarah German