"Text is not SVG - cannot display": why draw.io labels break in SVG
Short answer. draw.io writes most labels as HTML inside foreignObject elements of the SVG, with a short plain-text copy next to each one as a fallback. Wherever that HTML is not rendered, you see the fallback: one line, cut off, no formatting, no links, plus the warning "Text is not SVG - cannot display". Fix it in the export with Convert Labels to SVG , or by turning off formatted text. Labels…
draw.io creates most labels as HTML within foreignObject elements of SVG files, providing a fallback plain-text copy. When this HTML isn't rendered, the fallback appears: one line, truncated, lacking formatting, links, and the warning "Text is not SVG - cannot display". To fix this in exported SVGs, you can convert labels to native SVG text, turn off formatted text and word wrap, or embed fonts.
However, some labels cannot be converted due to containing links, lists, tables, or background colors. Confluence displays these SVGs as flat images, showing labels correctly but making links ineffective due to how it handles images with clickable elements. Solutions include using draw.io's "Convert Labels to SVG" feature, exporting to PDF and converting via a tool like Inkscape, or employing apps that render SVGs as live HTML in environments like Confluence.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.