Closed reagle closed 3 months ago
That's a bug: the filter produces a SVG image by default, but it seems that ODT does not support SVG images, and pandoc converts the image with an external program. It would be better if the filter would default to PNG images when targetting ODT.
As a temporary workaround, you can configure the mermaid engine to always produce PNG output:
diagram:
cache: true
engine:
mermaid:
mime-types: [image/png]
Thanks @tarleb, that does work. (I'll note that mermaid-filter also fails at SVG in docx/odt.)
It seems that the patch didn't fully fix this, thus reopening.
Now it's fixed.
❯ pandoc -s --lua-filter diagram.lua test-diagram.md -o test-diagram.docx -w docx