Skip to content
This repository has been archived by the owner on Nov 3, 2019. It is now read-only.

MDX 1.0 Support

Latest
Compare
Choose a tag to compare
@ChristopherBiscardi ChristopherBiscardi released this 12 Apr 08:00
· 32 commits to master since this release
da59df9

gatsby-mdx 0.6.1 introduces support for MDX 1.0 (and drops support for versions < 1.0).

  • 7c2effb We now use dataloader with a new implementation for resolving the html field. This makes it much more stable to generate RSS feeds
  • Improvements to the export replacements
  • 1f2e720 Use Gatsby cache instead of manually constructed paths
  • Enables support for the new createElement pragma in MDX 1.0
  • Enables support for @mdx-js/react
  • 36f8fb5 mdPlugins are now remarkPlugins
  • 36f8fb5 hastPlugins are now rehypePlugins
  • 05b22da gatsbyRemarkPlugins can now be referenced by string instead of import, pulling us to parity with gatsby-transformer-remark's style
  • 3cd8066 MDXRenderer now uses hooks, you'll need a React version with hooks (16.8+ is good)
  • 78b5893 core-js warnings are removed

Huge thanks to @johno, who has been invaluable as we feed features between gatsby-mdx and MDX core and @alexandernanberg who submitted numerous PRs getting us to 1.0 support. Also thanks to all of the contributors that helped get this release out the door by submitting code, docs, and filing issues.