Using MDX
This site uses next-mdx-remote to render MDX content inside Next.js. MDX files are stored in src/content/blog/ and rendered via the dynamic [slug] route.
Why MDX?
MDX is a special flavor of Markdown that supports embedded JavaScript & JSX syntax. This unlocks the ability to mix JavaScript and UI Components into your Markdown content for things like interactive charts or alerts.
If you have existing content authored in Markdown, migrating to MDX is straightforward — MDX is fully compatible with standard Markdown.
Example
Here is how you use links and inline components inside of MDX.
When you open this page in the browser, you should see the link below.