Skip to content

Commit 6f9c801

Browse files
committed
remove newlines from multipart mime base64 encoding
1 parent 9cb28ca commit 6f9c801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/jupyter/jupyter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ export function mdFromContentCell(
10301030
: data as string;
10311031
// base 64 decode if its not svg
10321032
if (!imageText.trimStart().startsWith("<svg")) {
1033-
const imageData = base64decode(imageText);
1033+
const imageData = base64decode(imageText.replaceAll("\n", ""));
10341034
Deno.writeFileSync(outputFile, imageData);
10351035
} else {
10361036
Deno.writeTextFileSync(outputFile, imageText);

0 commit comments

Comments
 (0)