Back

Example MDX Post

1 min read#nextjs#mdx

This post lives at content/posts/example-post/index.mdx. It should appear on the homepage, render at /posts/example-post, and show up under the nextjs and mdx tag pages.

Markdown

  • GFM lists work.
  • Inline code works.
  • Math works: E=mc2E = mc^2.
FeatureStatus
MDXworking
Tagsworking
export const sourceOfTruth = "content/posts/<slug>/index.mdx";
01x2dx=13\int_0^1 x^2 dx = \frac{1}{3}
Embeds
nextjs.orghttps://nextjs.org
What metadata is in this post?

The metadata lives in the YAML frontmatter at the top of the file. The renderer parses that header, validates it, then renders the MDX body below it.