Markdown and MDX are closely related — think of MDX as Markdown’s more powerful sibling. Markdown keeps things simple and readable, while MDX extends it to handle interactive and dynamic content using React (or other component frameworks).
TinaCMS is a great tool to build your site in MDX.
Markdown is perfect for straightforward content. Think of it like writing a clear, no-frills document. You'll want to use Markdown when:
Example: A recipe blog post with some text, headings, and a few pictures. Markdown handles this beautifully without any extra complexity.
MDX builds on Markdown by letting you embed components and logic directly inside your content. It’s still Markdown at heart — but with superpowers. Use MDX when:
Example: A coding tutorial with an interactive chart showing performance metrics, or a documentation page with a live code editor where readers can try out code in real-time.
MDX isn't perfect for every situation. Before you jump in, consider:
Choose Markdown for simple, fast content. Choose MDX when you need more interactive and dynamic features.
The key is to start simple. Use Markdown for most of your content, and only switch to MDX when you truly need those extra capabilities.
Want to migrate your website to a modern CMS like 🦙 TinaCMS, and move from Markdown to MDX? Check out Markdown to MDX migration guide.