produces many unwanted effects with several SVG files, especially those converted from PDF with Inkscape.
Example
Inlining
As an img element
As you can see, the texts, even if they’ve been converted to object paths, get corrupted. This happens especially with SVGs converted from PDFs with Inkscape (tested with the Poppler/Cairo Import).
One thing to check is what is the HTML generated by Hugo vs what is the DOM interpreted by the browser. Sometimes these are slightly out-of-sync since the browser may try to “fix” things. Granted, it may seem that the parsing of svg text elements (`s, right?) is giving something trouble…
Is there any way to fix that without touching the SVG itself? Perhaps including the SVG inside another element where I can set the width? I’d like to include my SVGs as if they were <img> elements, stretching to the entire width of the text where they’re included (as they’re right now).