Skip to content

Commit

Permalink
🔧 added official mimetype for svg when filtering output bundles (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejpurves authored Feb 21, 2024
1 parent 91d884f commit 614a416
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/jupyter/src/convertImages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export async function fetchAndEncodeOutputImages(
if (!('data' in output)) return output;

const imageMimetypes = Object.keys(output.data as MinifiedMimeBundle).filter(
(mimetype) => mimetype !== 'image/svg' && mimetype.startsWith('image/'),
(mimetype) =>
mimetype !== 'image/svg' && mimetype !== 'image/svg+xml' && mimetype.startsWith('image/'),
);
if (imageMimetypes.length === 0) return output;
// this is an async fetch, so we need to await the result
Expand Down

0 comments on commit 614a416

Please sign in to comment.