<MDX> component to render content between the tags as MDX that compiles like the rest of your page. This is useful when you want to put headings, code fences, tables, and other components inside of a JSX component.
Example
Show different Markdown sections based on an exported variable:Conditional Markdown
<MDX> at the top level of a page to group a Markdown section into a single element:
Block form
<MDX> strips the common leading indentation from its content, so you can indent it to match the surrounding code.
Headings inside
<MDX> do not appear in the page’s table of contents.Limits
- You can nest
<MDX>components up to 8 levels deep. - A page can expand up to 500
<MDX>fragments inside expressions.