Skip to content

SD-3116 - bug: SVG image doesn't render on imported files#3268

Merged
artem-harbour merged 4 commits into
mainfrom
gabriel/sd-3116-bug-image-set-as-presetcontent-in-sdt-field-does-not-persist
May 14, 2026
Merged

SD-3116 - bug: SVG image doesn't render on imported files#3268
artem-harbour merged 4 commits into
mainfrom
gabriel/sd-3116-bug-image-set-as-presetcontent-in-sdt-field-does-not-persist

Conversation

@chittolinag
Copy link
Copy Markdown
Contributor

Issue

SVG images embedded in the document are not rendered when loading a document in SuperDoc. The root cause is: browsers expect the MIME type of SVG images to be svg+xml, but we were rendering them as svg only. The browser then refused to render it.

Proposed solution

Like we do with other media types, we simply need to map svg to svg+xml before converting it to base64.

@linear
Copy link
Copy Markdown

linear Bot commented May 13, 2026

SD-3116

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@chittolinag chittolinag marked this pull request as ready for review May 13, 2026 18:34
@chittolinag chittolinag requested a review from a team as a code owner May 13, 2026 18:34
Copy link
Copy Markdown
Contributor

@artem-harbour artem-harbour left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@artem-harbour artem-harbour merged commit 6aa70b5 into main May 14, 2026
65 checks passed
@artem-harbour artem-harbour deleted the gabriel/sd-3116-bug-image-set-as-presetcontent-in-sdt-field-does-not-persist branch May 14, 2026 09:10
@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 14, 2026

🎉 This PR is included in superdoc v1.30.0-next.85

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 14, 2026

🎉 This PR is included in vscode-ext v2.3.0-next.134

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 14, 2026

🎉 This PR is included in @superdoc-dev/react v1.2.0-next.132

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 14, 2026

🎉 This PR is included in @superdoc-dev/mcp v0.3.0-next.89

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 14, 2026

🎉 This PR is included in superdoc-cli v0.8.0-next.104

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 14, 2026

🎉 This PR is included in superdoc-sdk v1.8.0-next.88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants