diff --git a/src/plugins/image/image.tsx b/src/plugins/image/image.tsx index 256a26bec..c96be3ab5 100644 --- a/src/plugins/image/image.tsx +++ b/src/plugins/image/image.tsx @@ -53,6 +53,9 @@ class SimpleImageRenderer extends React.Component< ); } + if (dataBlob.name.endsWith(".svg")) { + dataBlob = new Blob([dataBlob], { type: "image/svg+xml" }) as ExtBlob; + } if (this.objUrl == null) { this.objUrl = URL.createObjectURL(dataBlob); }