π Hey folks, the time has come to begin putting together MDX v2. We've been aggregating feedback, working on parsing, and we think we now have all of our π¦π¦π¦π¦ ducks in a line to begin releasing a next tag in the next week.
Please note: Nothing written here is final and we'd love for contributors, users, and anyone else to comment with ideas, opinions, and questions/concerns.
Generally speaking, most of the breaking changes will be internal and shouldn't directly affect end users. We haven't yet shipped them, though, because they are technically changing behavior users may've been depending on (which will be documented below).
However, with the parsing overhaul (#1039) the syntax has been formalized which will likely cause issues for characters that aren't HTML encoded, < and {, (some of which we'll be able to address with codemods).
components for the pragma prop has been renamed to mdxComponents https://github.com/mdx-js/mdx/issues/638layoutProps being passed to MDXContent/wrapper https://github.com/mdx-js/mdx/issues/742mdPlugins and hastPlugins options https://github.com/mdx-js/mdx/issues/718The following RFCs (request for comments) are either accepted (β ), being discussed (π¬), declined (βοΈ), or need to be written (π). If you have opinions here, please chime in on these issues as they will affect the v2 release.
If you have any interest in working on any of these tasks please let us know! We'd be happy to help guide anyone along.
eslint-mdx https://github.com/mdx-js/eslint-mdx/issues/204export { default } from './foo' https://github.com/mdx-js/mdx/issues/961import * as Foo from './foo' https://github.com/mdx-js/mdx/issues/1050next tagremark-mdx and remark-mdxjs, imports and exports can be turned off with an optionmdx package that includes all packages with exports like: mdx/react and mdx/vueLet us know if you want to take on any of the issues that don't yet have folks assigned. You can also take the canary for a spin and let us know if you encounter any problems:
yarn add @mdx-js/mdx@next @mdx-js/react@next
Is there something missing? Is there something you're concerned about?
This is so exciting to see! When the time is right, Iβd be happy to help test this with our design system: https://seeds.sproutsocial.com
Thanks @johno ! Excited for this to progress. I guess the first thing we can do for the Vue package is to work on the documentation so we can get some people to use it and gather some feedback. Then when it's stable we can see how to normalize the MDX rendering props and attrs for Vue in mdx v2.
For sure @codebender828! Are you interested in owning that (#851)?
@johno
Yes! Sounds good! Where's the best place to get started with familiarizing myself with the docs?
Is it possible to solve vscode's IntelliSense problem? https://github.com/mdx-js/vscode-mdx/issues/56
@johno worst question ever, but any updated ETA on this? we've added a bit of scope to Storybook 6 and are looking at RC late june and final release late july. would be amazing to make MDX2 part of that. and--since it's a breaking change--pretty bad if we can't, since we try to limit our major release cycle to once per year (tho we're not religious about that)
Hey @shilman, we're hoping for an RC in the by June, and if all goes well a mid July release. Generally speaking, the breaking changes should be pretty light because they're generally internals aside from the new parsing changes (which we will also offer a codemod that should address most problems that might arise).
Hopefully this corresponds nicely with you folks? I'm pretty busy this week with other things, but plan on picking MDX v2 back up full time starting next week.
what about #702 ? (passing Code props as JSX instead of string)
It's a breaking change and would fit nicely with the rest of v2.
I think we can drop:
I donβt really see a use for it personally.
(Iβve updated some of the others that are done or are solved in other ways)
Everything else thatβs left to do still makes sense to me for v2
Most helpful comment
Hey @shilman, we're hoping for an RC in the by June, and if all goes well a mid July release. Generally speaking, the breaking changes should be pretty light because they're generally internals aside from the new parsing changes (which we will also offer a codemod that should address most problems that might arise).
Hopefully this corresponds nicely with you folks? I'm pretty busy this week with other things, but plan on picking MDX v2 back up full time starting next week.