-
Notifications
You must be signed in to change notification settings - Fork 15
feat: compatibility #881
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
feat: compatibility #881
Conversation
trishaprile
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.
goated
processor/compile/compatability.ts
Outdated
| } | ||
| }; | ||
|
|
||
| export default compatability; |
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.
😬 😬 😬 how do i break it to you that you spelled compatibility wrong 😬
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.
If spelling compatability like compat-ability is wrong, I don't want to be right.
This PR was released!🚀 Changes included in v6.75.0-beta.38 |

🧰 Changes
Adds backwards compatibility with variables, glossary, and reusable content.
When we're trying to update a document from markdown to MDX, we first parse the document to an mdast using the old markdown library. Then we serialize it back to MDX with this version. Basically:
But, because these types are now completely represented in JSX, we didn't have any custom compilers to handle them. This adds some compilers to write their nodes back out as JSX.
Callouts
Also, refactors how callouts are represented. Adds a prop to the node
emptyto represent if there's a heading a not. It's a bit more plumbing to get mdx to parse and execute props, so this leaves the heading as a child.HTML Comments
To be able to migrate away, we need to replace html comments with JSX comments.
🧬 QA & Testing