Skip to content

Conversation

@kellyjosephprice
Copy link
Contributor

@kellyjosephprice kellyjosephprice commented Sep 10, 2024

PR App Ref RM-10799, RM-10667

🧰 Changes

Fixes some issues when migrating images.

  • mdast was sometimes not correctly populating image attributes. I tried to make it more normal, so the attributes are copied to both the node and the hProperties. 🤷

  • a null attribute could crash the transormers. I've added a null check, as well as filtered out empty attributes.

🧬 QA & Testing

This should probably be tested in the main app so we get the full integrations.

@kellyjosephprice kellyjosephprice marked this pull request as ready for review September 10, 2024 22:57
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.

👌

Comment on lines 69 to 70
if (typeof attr.value === 'string' || attr.value === null) {
memo[attr.name] = attr.value;
Copy link
Contributor

Choose a reason for hiding this comment

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

So we intentionally want to set the attribute to null here? May I ask why?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wasn't sure what to do with it. But I think it should actual set the value to true

@kellyjosephprice kellyjosephprice merged commit a30bc64 into next Sep 11, 2024
@kellyjosephprice kellyjosephprice deleted the fix/image-migration branch September 11, 2024 21:27
rafegoldberg pushed a commit that referenced this pull request Sep 12, 2024
## Version 7.5.1

### 🛠 Fixes & Updates

* image migration issues ([#965](#965)) ([a30bc64](a30bc64))

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

This PR was released!

🚀 Changes included in v7.5.1

rafegoldberg pushed a commit that referenced this pull request Jan 8, 2025
## Version 7.11.0
### ✨ New & Improved

* add title props to plain ([#1036](#1036)) ([a3b7f50](a3b7f50))

### 🛠 Fixes & Updates

* **deps:** bump debug from 4.3.7 to 4.4.0 ([#1038](#1038)) ([a5a8061](a5a8061))
* **deps:** bump readmeio/rdme from 8 to 9 ([#1037](#1037)) ([3f403de](3f403de)), closes [/github.com/readmeio/rdme/blob/HEAD/#migrating-to-rdme10](https://github.com/readmeio//github.com/readmeio/rdme/blob/HEAD//issues/migrating-to-rdme10) [#1099](#1099) [#1085](#1085) [#1106](#1106) [#1107](#1107) [#1068](#1068) [#962](#962) [#1067](#1067) [github.com/readmeio/rdme/blob/d01d76fe3c2e4a98b4f5c415be03e589fbe3b56e/.releaserc.yml#L30](https://github.com/readmeio/github.com/readmeio/rdme/blob/d01d76fe3c2e4a98b4f5c415be03e589fbe3b56e/.releaserc.yml/issues/L30) [#1067](#1067) [#1072](#1072) [#1100](#1100) [#1078](#1078) [#1042](#1042) [#908](#908) [#901](#901) [#1073](#1073) [#1080](#1080) [#961](#961) [#963](#963) [#993](#993) [github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V20.md#2023-11-22-version-20100](https://github.com/readmeio/github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V20.md/issues/2023-11-22-version-20100) [#965](#965) [#1080](#1080) [#1106](#1106) [#1105](#1105) [#1098](#1098) [#1099](#1099) [#1100](#1100)
* dont treat escapes as flow ([#1040](#1040)) ([4692ece](4692ece))

<!--SKIP CI-->
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