Skip to content
Writing
mdxblogdemo

Exploring the Magic of MDX

A sample MDX blog post demonstrating text, images, code, and other elements.

Favor EliabAugust 12, 2025

MDX allows you to write JSX inside Markdown files — making it perfect for blog posts that mix content and components.

MDX in action

THis will be Image subtitle

Why MDX?

Here are some key reasons:

  1. Flexible — write Markdown and JSX.
  2. Reusable Components — drop in any React component.
  3. Interactive — add dynamic content right in your posts.

"The future of content is interactive." — Someone on the internet

Example Code Block

Here’s some JavaScript:

js
function greet(name) {
return `Hello, ${name}!`;
}
console.log(greet("MDX Lover"));

Why MDXs another title?

Here are some key reasons:

  1. Flexible — write Markdown and JSX.
  2. Reusable Components — drop in any React component.
  3. Interactive — add dynamic content right in your posts.

These are related contents

this is subtitle content

This will contain some subtitle contents that will help Lorem ipsum dolor sit amet consectetur adipisicing elit. Nostrum eaque accusantium, repellat earum impedit perspiciatis asperiores fugiat ab odio! Facere quaerat iusto qui ipsa. Magni fugiat illo ullam nobis fugit qui, facilis animi dicta iusto. Ad quidem provident dolorem, sequi quo veritatis veniam iste, vel tempora adipisci, nesciunt cupiditate corporis.


Non suscipit iste autem similique. Voluptatibus laudantium aliquam velit sint delectus molestiae animi numquam, dignissimos neque ex ea fugiat quam voluptates aspernatur voluptatum maiores quos? Sequi veritatis facere adipisci vitae impedit. Ipsum eveniet sunt id! Voluptates amet, tempore esse illum maiores nemo natus, cum sed quod iste, obcaecati deleniti odio.

Another title in the hood

The contents will be Here

Click to reveal content

This content will be hidden until the summary is clicked. You can include text, images, or even other HTML elements here.

Click to expand

Here is the hidden content in markdown style.

  • You can still use lists
  • Bold text works
  • And even more markdown inside

This is contents after the list