Using MDX
Support for MDX is built-in. You can use it to build React components and pages with Markdown. For an example, read this page's source code in
src/app/(main)/guides/using-mdx/page.mdx
.Basics
Italic, bold, strikethrough.
Headings
h3
h4
h5
h6
IDs are also supported (and will be picked up by the
PageOverview
component)Links
Custom link: Example
Autolink: www.example.com, https://example.com, and contact@example.com.
Images

You can also scale the image (recommended as this reduces cumulative layout shifts):


Custom components
Quotes
This is a blockquote.Multi-line is supportedNested blockquote
Footnote
A note1
Table
a | b | c | d |
---|---|---|---|
This | is | a | table |
demonstrating | various | alignment | options. |
Lists
- You can make
- normal lists
- And indent them like this
- Or you can make
- numbered lists
- And indent them like this
- Or you can make
- task lists
- Again, indented like this
- Update website www.example.com
Code
Use single backticks for
inline code
.Dividers
Horizontal dividers
Math
You can write math like
Or you can do
Footnotes
-
Big note. ↩