terrastruct / d2

D2 is a modern diagram scripting language that turns text to diagrams.
https://d2lang.com
Mozilla Public License 2.0
18.13k stars 444 forks source link

Adobe apps crash when dealing with CSS in generated SVG files #2146

Open dmolesUC opened 1 month ago

dmolesUC commented 1 month ago

Steps to reproduce:

  1. From this D2 file, generate an SVG, as:
    • d2 index.d2 index.svg
  2. Open the resulting file in Adobe Illustrator 2024 or Adobe Photoshop 2024.

Expected behavior:

Actual behavior:

Notes:

alixander commented 1 month ago

i'm actively working on inlining styles. the segfault is adobe's fault though lol

alixander commented 1 month ago

related: https://github.com/terrastruct/d2/issues/2142

alixander commented 1 month ago

Let's see if it works after #2142 is fixed in the next release. If it's really the presence of