本文暂无中文版本,以下显示English原文。
Ordinary Markdown is great for prose. But sometimes a post needs a real component in the middle of a sentence — a chart, a live demo, a callout that isn’t just a blockquote.
That is what MDX gives you: Markdown with JSX, and Astro components importable like any other module.
What still works
Everything from Markdown — bold, italic, lists, tables, and fenced code blocks:
const posts = await getCollection('blog')
What is new
You can pass props, and you can use expressions:
That is the whole trade-off: a little more power, a little more care.