FREEFirst project with us? Your landing page design is on the house.See the offer

Glossary · Astro and headless

What is MDX?

By Abdul QuadirUpdated Nov 2026
MDXnoun · Astro and headless

MDX is Markdown that can also use components. You write in simple text, and you can drop in a chart, a callout or a video player where you need it.

MDX is Markdown that can also use components. You write in simple text, and you can drop in a chart, a callout or a video player where you need it.

MDX, explained

Markdown is a simple way to write formatted text with symbols, such as a hash for a heading. It is easy to read and easy to store in Git, but on its own it only produces basic content.

MDX adds components and JavaScript expressions. A developer builds a pricing table component once, and a writer can place it inside any article with one line.

It is popular for documentation and developer blogs. Astro supports it through an official integration, and frameworks such as Next.js support it as well.

The catch is that it suits people who are comfortable with files. A syntax mistake can break a build, and non-technical editors usually prefer a visual CMS with structured content such as Portable Text.

In our work

How Kookies uses it

We use file-based content where the people editing it are comfortable with that, and a CMS like Sanity when marketers need to edit on their own.

FAQs

MDX
questions.

Abdul Quadir
Still have a question?Ask us directly. We reply within a day.
Book a callPick a timehello@kookies.io

Markdown handles formatted text. MDX adds components and expressions inside that text.

Yes, through an official integration.

Only if they are comfortable with files and Git. Most marketing teams prefer a CMS.

Your turn

Let's kook
what you krave.

Hi Kookies, I need a built on . I'd love to launch . Reach me at
or book a callSent. We reply within one working day.