Closed riccardoratta closed 4 years ago
You could use <img src="xxx" style="max-width:none" />
or choose a theme with wilder writing content for hot fix.
Typora set a max-width:100%
CSS for images to make the layout "responsible", but Safari has bugs about resizing SVG image contains "foreign objects" (for Typora in Windows/Linux the bug does not exists since those versions are based on Chromium).
use max-width:none
has drawbacks that may lead svg files without "foreign objects" unable to scale into a fit size based on current theme / window size. So I'm closing this since it is a Safari / System bug that we almostly can do nothing.
Hello @abnerlee . Following is not rendering. Do you know the reason why?
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 158 180" width="158" height="180">
<!-- svg-source:excalidraw -->
<defs>
<style>
@font-face {
font-family: "Virgil";
src: url("https://excalidraw.com/Virgil.woff2");
}
@font-face {
font-family: "Cascadia";
src: url("https://excalidraw.com/Cascadia.woff2");
}
</style>
</defs>
<g stroke-linecap="round" transform="translate(10 10) rotate(0 69 80)"><path d="M1.16 -0.01 C35.29 -2.57, 74.05 -1.09, 139.43 -0.85 M0.66 0.31 C32.76 1.19, 64.49 1.06, 138.47 0.04 M138.52 0.82 C140.63 35.61, 139.38 71.74, 137.26 161.69 M138.73 -0.22 C137.58 61.18, 136.85 121.3, 137.49 159.93 M138.3 161.74 C86.9 159.93, 36.7 160.16, -0.88 160.31 M137.23 160.47 C101.92 158.76, 66.39 159.1, 0.39 160.22 M0.97 159.93 C1.29 106.85, -1.59 54.92, 1.27 -0.78 M0.81 159.48 C2.25 107.15, 1.77 54.62, -0.11 0.01" stroke="#000000" stroke-width="1" fill="none"></path></g></svg>
Some SVG images are not rendered correctly, for instance the following diagram (exported as SVG from draw.io) has the text not rendered or wrong placed.
The same document displayed with firefox
Raw SVG