MDX playground

This post is written in MDX, which renders JSX components at build time1 — no client-side JavaScript is shipped.

Fenced code is highlighted too

MDX uses remark instead of markdown-it, so highlighting runs through a separate shiki pipeline:

type Post = { title: string; date: Date };

const posts: Post[] = [];

Footnotes

  1. Via @mdx-js/mdx evaluated with react-dom/server. ↩