Mermaid JS and Kroki are not compatible with each other. Kroki converts the diagrams to images (which makes a lot of sense for PDF) but Mermaid tries to create an SVG element. In HTML, Kroki removes the SVG features like links from Mermaid and tries to convert it to an image. Even if they render correctly, the features are missing. They should be interpreted as SVG elements and not SVG graphics imported as images. Just using it for PDF would be great, if possible?
configuration -
markdown_extensions:
# https://github.com/mikitex70/plantuml-markdown
plantuml_markdown:
server: https://<xyz>.com/api/plantuml
format: svg_inline
remove_inline_svg_size: false
# https://github.com/hkato/markdown-kroki
markdown_kroki:
kroki_url: https://<xyz>.com/api/kroki
any solution for this ? @hkato
Mermaid JS and Kroki are not compatible with each other. Kroki converts the diagrams to images (which makes a lot of sense for PDF) but Mermaid tries to create an SVG element. In HTML, Kroki removes the SVG features like links from Mermaid and tries to convert it to an image. Even if they render correctly, the features are missing. They should be interpreted as SVG elements and not SVG graphics imported as images. Just using it for PDF would be great, if possible?
configuration -
any solution for this ? @hkato