fix: ssr mdx custome elemtnts bugs#16577
Conversation
🦋 Changeset detectedLatest commit: abb048e The changes in this PR will be included in the next version bump. This PR includes changesets to release 437 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
305cbd8 to
5dc7c37
Compare
d830d09 to
9d3c977
Compare
9d3c977 to
abb048e
Compare
There was a problem hiding this comment.
Do we really need two fixtures? We are trying to reduce the number of fixtures, and use more unit tests. The test with MDX probably needs an integration test with a fixture, but we already have fixtures that use mdx, so I suggest one of the existing ones, you just need a new page.
As for the test with the Astro component, you can create a unit test. We already a lot of them, so you can copy some.
| 'astro': patch | ||
| --- | ||
|
|
||
| Fixed issue where custome elements in MDX bypass the renderer pipline. By detecting hyphens in tag names within the JSX runtime, custom elements are now correctly routed to the renderer for SSR, ensuring parity with .astro files. |
There was a problem hiding this comment.
| Fixed issue where custome elements in MDX bypass the renderer pipline. By detecting hyphens in tag names within the JSX runtime, custom elements are now correctly routed to the renderer for SSR, ensuring parity with .astro files. | |
| Fixed issue where custom elements in MDX bypass the renderer pipline. By detecting hyphens in tag names within the JSX runtime, custom elements are now correctly routed to the renderer for SSR, ensuring parity with .astro files. |
Follow the guidelines https://contribute.docs.astro.build/docs-for-code-changes/changesets/#tips-and-examples
Users don't care about how we detect a custom element
Thank you for your comment! |
Changes
Close #16273
Fixed issue where custome elements in MDX bypass the renderer pipline. By detecting hyphens in tag names within the JSX runtime, custom elements are now correctly routed to the renderer for SSR, ensuring parity with
.astrofiles.Testing
Before fixing bug
Test result after implement all test.
After fixing bug
Docs