We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f700e8a commit 01a6882Copy full SHA for 01a6882
src/index.js
@@ -141,6 +141,10 @@ class CoCreateServerSideRender {
141
) {
142
let chunk = data.object[0].src;
143
144
+ if (typeof chunk === "string" && chunk.startsWith("data:image/svg+xml;base64,")) {
145
+ chunk = Buffer.from(chunk.split(",")[1], "base64").toString("utf-8");
146
+ }
147
+
148
// Replace $relativePath in the fetched chunk
149
let path =
150
el.getAttribute("path") || getRelativePath(file.path);
0 commit comments