-
Notifications
You must be signed in to change notification settings - Fork 15
fix: compatibility for unknown nodes #929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| .use(hast ? rehypeRemark : undefined) | ||
| .use(remarkMdx) | ||
| .use(remarkGfm) | ||
| .use(divTransformer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm not 100% on this placement, whether or not it should be before the hastifying
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine, I don't think there's any hastifing in this function. It's taking either an mdast or a hast and outputting mdx.
|
this will cause some of the pages with i'm assuming that's because custom components aren't being sent in the migration script--easy enough to fix |
Yea, it's defined in the main app. We should probably add a stub to the migration so we don't got those errors. |
kellyjosephprice
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable to me.
Thanks for cleaning up all the cruft!
| type: NodeTypes.tutorialTile, | ||
| } as TutorialTile; | ||
| parent.children.splice(index, 1, tile); | ||
| // idk what this is and/or just make it a paragraph |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤷🏼
This PR was released!🚀 Changes included in v6.75.0-beta.70 |

🧰 Changes
Unhandled nodes are throwing errors during migration. Offending node types:
divembedfigureirdme-pinyaml🧬 QA & Testing
You can look up the
Cannot handle unknown node <node>errors from Aaron's migration spreadsheet to find pages to test locally, if you want to usemake mdxto swap out the dist files in yourreadmerepo.You'll have to check out his other PR with the migration scripts first, which has directions for testing pages.