Skip to content

Conversation

@kellyjosephprice
Copy link
Collaborator

PR App Ref RM-13880

🧰 Changes

Fixes migrating images with alt text.

🧬 QA & Testing

@kellyjosephprice kellyjosephprice requested review from a team and rafegoldberg September 16, 2025 20:50
@kellyjosephprice kellyjosephprice marked this pull request as ready for review September 16, 2025 20:50

if ('url' in image) image.data.hProperties.src = image.url;
const attributes = toAttributes(image.data.hProperties, imageAttrs);
const attributes = toAttributes({ ...image, ...image.data.hProperties }, imageAttrs);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We put the alt attribute directly on the image node, because that's how remark does it. But we weren't following that shape here.

Copy link
Contributor

@rafegoldberg rafegoldberg left a comment

Choose a reason for hiding this comment

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

Makes sense to me!

@kellyjosephprice kellyjosephprice merged commit 8f66b46 into next Sep 16, 2025
7 checks passed
@kellyjosephprice kellyjosephprice deleted the fix/migrating-images branch September 16, 2025 23:01
rafegoldberg pushed a commit that referenced this pull request Sep 16, 2025
## Version 11.1.1
### 🛠 Fixes & Updates

* migrating images with alt text ([#1196](#1196)) ([8f66b46](8f66b46))

<!--SKIP CI-->
@rafegoldberg
Copy link
Contributor

This PR was released!

🚀 Changes included in v11.1.1

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants