Customizing Markdown Components
Using MDX, you can replace every HTML element that Markdown renders with a custom implementation. This allows you to use a set of design system components when rendering.
Note: you can also provide your own custom components to the
MDXProvider that make them globally available while writing MDX. You can find more details about this pattern in the Importing and Using Components in MDX guide.
The following components can be customized with the MDXProvider:
Components passed to the MDXProvider are used to render the HTML elements that Markdown creates. It uses React’s Context API.