2.1.0
This release adds support for wrapping the MDX content with custom providers! You can now pass a provider to both renderToString
and hydrate
:
renderToString(source, { provider: { component: MyProvider, props: { my: 'prop' } } });
hydrate(mdxSource, { provider: { component: MyProvider, props: { my: 'prop' } } });
Check out the README section on using providers for more information.
Big thanks to all who contributed to this release, either through direct contributions or testing:
- @devrsi0n for getting the custom provider work started
- @ynnoj for testing out the custom provider functionality in his project and identifying a bug in the initial implementation!
- @marcofranssen for updating our react peer dependencies
And a thanks to everyone who participated in the discussion, we appreciate all of your contributions! 🙏