Skip to content
Back to snippets
mdxmarkdownreactblogging

Ultimate MDX Blog Showcase

8 min read570 views

A complete MDX blog demonstrating all major Markdown, HTML, and MDX components.

H1 — Ultimate MDX Component Showcase

Welcome to the complete MDX showcase blog.

This article demonstrates nearly every important component and formatting feature available in MDX including:

  • Headings
  • Lists
  • Tables
  • Code blocks
  • HTML
  • JSX Components
  • React Components
  • Images
  • Videos
  • Math
  • Mermaid
  • Alerts
  • Forms
  • Footnotes
  • Keyboard tags
  • Definition lists
  • Details/Summary
  • And much more

H2 — What is MDX?

MDX is a format that lets you combine:

  1. Markdown
  2. JSX
  3. React Components

Inside the same file.

H3 — Why Developers Love MDX

Because it allows:

  • Rich interactive content
  • Component-driven documentation
  • Better blog experiences
  • Reusable UI blocks

H4 — MDX is Powerful

You can embed React directly into markdown.

H5 — Smallest Heading Example

This is an H5 heading.

H6 — Final Heading Level

This is an H6 heading.


Text Formatting

Basic Formatting

This text contains:

  • Bold
  • Italic
  • Bold Italic
  • Strikethrough
  • `Inline code`

Advanced Formatting

Superscript & Subscript

H2O

x2

Highlight

Highlighted text example

Small Text

This is small text.

Pros and Cons

You might use Tailwind CSS if...
Highly customizable utility classes
Fast and responsive design workflow
Prunes unused CSS automatically
You might not use Tailwind CSS if...
Steep initial learning curve for class names
Can make HTML markups look clustered or messy

CodepenBanner


Callout

ℹ️

While both `config()` and `theme()` in Tailwind CSS are used to access values defined in your `tailwind.config.js` file, they serve slightly different purposes and have different scopes of access.


CustomTable

theme()config()
Purpose: The theme() function is specifically designed to access values within the theme section of your Tailwind configuration.Purpose: The config() function is designed to access any value within the tailwind.config.js file, not just those within the theme section.
Scope: Limited to the theme section of tailwind.config.js.Scope: Can access the entire Tailwind configuration file, including custom configurations, variants, plugins, and other settings.
Usage: Primarily used to access design tokens like colors, spacing, fonts, etc., that are defined within the theme object.Usage: Used to retrieve configuration values that may not be strictly related to the theme, such as custom settings, variant configurations, or other top-level configuration options.
Context: Commonly used within custom utilities and variants to ensure consistent design tokens.Context: Useful when you need to access more than just the theme values, such as custom plugin settings or variant definitions.

Lists

Unordered List

  • Apple
  • Mango
  • Orange
    • Kesar
    • Alphonso
      • Premium
      • Export Quality

Ordered List

  1. Install Node.js
  2. Setup Next.js
  3. Configure MDX
  4. Deploy application

Task List

  • Install dependencies
  • Configure MDX
  • Create blog pages
  • Add SEO

Blockquotes

This is a blockquote.

"MDX combines markdown with components."


Horizontal Rule


Links

OpenAI

Jump to Tables


Images

Standard Image

Mountains


HTML Image

Random

Tables

FeatureMarkdownMDX
Headings
JSX
React Components
Dynamic Content

Complex Table

NameRoleExperienceSkills
JohnFrontend5 YearsReact, TS
SarahBackend7 YearsNode, DB
MikeDevOps4 YearsAWS, Docker

Code Blocks

JavaScript

script.js
function greet(name) {
  return `Hello ${name}`
}
 
console.log(greet("World"))

TypeScript

script.ts
interface User {
  id: number
  name: string
}
 
const user: User = {
  id: 1,
  name: "John"
}

Python

script.py
def greet(name):
    return f"Hello {name}"
 
print(greet("Python"))

Bash

bash.sh
npm install
npm run dev

JSON

package.json
{
  "name": "mdx-blog",
  "version": "1.0.0"
}

HTML

index.html
<div class="container">
  <h1>Hello World</h1>
</div>

CSS

style.css
.container {
  display: flex;
  justify-content: center;
}

Preformatted Text

This is preformatted text. Formatting and spacing remain exactly preserved.


Details / Summary

Click to Expand

This content is hidden by default.

  • Hidden item 1
  • Hidden item 2

Keyboard Keys

Press CTRL + C to copy.


Definition Lists

MDX
Markdown + JSX
JSX
JavaScript XML syntax

Emoji Support

🚀🔥🎉💡📘


Footnotes

Here is a sentence with a footnote.1 Here is a sentence with another footnote.2


Abbreviations

HTML

Audio


Video


Embedded YouTube


Mermaid Diagram

Data Validation PipelineFlowchart
Deployment WorkflowFlowchart
User Authentication FlowSequence Diagram
User Roles Class StructureClass Diagram
E-Commerce Entity Relationship DiagramER Diagram
Project TimelineGantt Chart
Market SharePie Chart
Process Lifecycle StatesState Diagram
Learning Strategy MindmapMindmap
Git Feature Branching ModelGit Graph
Customer JourneyUser Journey
KanbanKanban

Nested Lists

  1. Frontend

    • React
    • Next.js
      • App Router
      • Pages Router
  2. Backend

    • Node.js
    • Express
  3. Database

    • PostgreSQL
    • MongoDB

Checklist

TaskStatus
Setup MDX
Add Components
Styling
Deployment🚧

Form Elements


SVG Example


Progress Element


Meter Element

80%

Keyboard Navigation Table

ShortcutAction
CTRL + SSave
CTRL + CCopy
CTRL + VPaste

Conclusion

This MDX file demonstrated:

  • Headings
  • Lists
  • Tables
  • JSX
  • React Components
  • Interactive UI
  • Audio/Video
  • Forms
  • Mermaid
  • Math
  • HTML
  • Footnotes
  • SVG
  • Inline styles
  • Alerts
  • And much more

You can now use this as:

  • Blog starter template
  • Documentation template
  • MDX testing file
  • UI showcase
  • Markdown renderer benchmark

Final Note

Made with ❤️ using MDX + React.

Footnotes

  1. This is the first footnote content.

  2. This is the second footnote content.