jgraph / drawio-desktop

Official electron build of draw.io
https://www.diagrams.net
Apache License 2.0
50.77k stars 5.02k forks source link

CLI export to SVG doesn't render LaTeX (but exports correctly in GUI) #1874

Open jeremy-dolan opened 1 month ago

jeremy-dolan commented 1 month ago

Preflight Checklist

You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.


Math between \( \) will render correctly when using SVG export in GUI, but when exported to SVG using CLI the 'source' LaTeX markup is shown.

This appears to have regressed, as the same issue was reported two years ago as issue #223, and then apparently fixed.

Tested on MacOSX Draw.io 24.7.8 (the latest desktop version)

To Reproduce /Applications/draw.io.app/Contents/MacOS/draw.io -x -f svg -o figure.svg input.drawio

JRodez commented 1 month ago

Same on NixOS with 24.7.8

kestr31 commented 2 weeks ago

image

probabilitySpace

drawio -x -f svg --scale 2 "$filename.drawio" -o "${filename}.svg"