Skip to content

Conversation

@eaglethrost
Copy link
Contributor

@eaglethrost eaglethrost commented Nov 7, 2025

PR App Fix RM-XYZ

🧰 Changes

In the migrate function, recursively call the base migrate on contents inside comment blocks

🧬 QA & Testing

@@ -0,0 +1,32 @@
const COMMENT_BLOCK_REGEX = /{\/\*([\s\S]*?)\*\/}/g;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is dangerous to do as a regex. The following would be valid non-comments:

Not a comment: `{/* example */}`

```
<div>{/* also not a comment */}</div>
```

But, I imagine the number of occurrences of mdx code in our user's docs is vanishingly low.

@kellyjosephprice kellyjosephprice merged commit 60691dc into readmeio:next Nov 11, 2025
2 checks passed
rafegoldberg pushed a commit that referenced this pull request Nov 11, 2025
## Version 11.7.0
### ✨ New & Improved

* migrate contents inside comments ([#1229](#1229)) ([60691dc](60691dc))

### 🛠 Fixes & Updates

* **deps:** bump tailwindcss from 4.1.16 to 4.1.17 ([#1231](#1231)) ([96343ae](96343ae)), closes [#19263](https://github.com/readmeio/markdown/issues/19263) [#19242](https://github.com/readmeio/markdown/issues/19242) [#19263](https://github.com/readmeio/markdown/issues/19263) [#19242](https://github.com/readmeio/markdown/issues/19242) [#19272](https://github.com/readmeio/markdown/issues/19272) [#19263](https://github.com/readmeio/markdown/issues/19263) [#19238](https://github.com/readmeio/markdown/issues/19238)
* empty callouts erroring out ([#1232](#1232)) ([e740bfc](e740bfc))
* extract sections within custom components for TOC ([#1227](#1227)) ([615fe1b](615fe1b))
* skip wrapping heading in callouts for non pragraph ([#1230](#1230)) ([bcb0c0a](bcb0c0a))
* **deps-dev:** upgrading to vitest v4 ([#1222](#1222)) ([4fbaa3e](4fbaa3e))

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

This PR was released!

🚀 Changes included in v11.7.0

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