Kuliga Poster
← Back to all posts

MDX Posts Are Now Supported

August 25, 2026

MDX Posts Are Now Supported

This post is a .mdx file instead of .md. Everything from the other posts still works — headings, lists, and syntax-highlighted code blocks — but MDX also lets a post render actual React components inline.

This box isn't a styled blockquote — it's a real Callout component, rendered directly inside the content.

Code still works the same way

JAVASCRIPT
function greet(name) {
  return `Hello, ${name}!`;
}

console.log(greet('world'));

Mixing prose and components

Only .mdx files can import and render components like this — existing .md posts are untouched and keep rendering through the original Markdown pipeline.

That's the whole trick: same frontmatter, same syntax highlighting, same styling — just with the option to drop in a component when plain Markdown isn't expressive enough.

More components

A handful of Starlight-inspired components are also available.

Tabs

SH
npm install next

Steps

  1. Install dependencies with your package manager of choice.
  2. Run next dev to start the local server.
  3. Open localhost:4000 in your browser.

LinkButton

Back to all posts

Next.js docs

FileTree

  • app/
    • blog/
      • [slug]/
        • page.tsx
    • layout.tsx
    • page.tsx
  • content/
    • posts/
      • mdx-in-this-blog.mdx
  • package.json

Charts

Visitors
Signups
Bar chart
Chart data
LabelVisitorsSignups
Jan1200320
Feb1900480
Mar1500410
Apr2400610
May2100590
Line chart
Chart data
LabelRequests
Mon820
Tue932
Wed901
Thu1340
Fri1290
Sat780
Sun690

Cards and LinkCards

Fast

Posts are statically generated at build time.

Flexible

Drop React components straight into .mdx posts.

← Back to all posts