Ultimate MDX Blog Showcase
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:
- Markdown
- JSX
- 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 exampleSmall Text
This is small text.Pros and Cons
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
- Install Node.js
- Setup Next.js
- Configure MDX
- 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
External Link
Internal Link
Images
Standard Image
HTML Image
Tables
| Feature | Markdown | MDX |
|---|---|---|
| Headings | ✅ | ✅ |
| JSX | ❌ | ✅ |
| React Components | ❌ | ✅ |
| Dynamic Content | ❌ | ✅ |
Complex Table
| Name | Role | Experience | Skills |
|---|---|---|---|
| John | Frontend | 5 Years | React, TS |
| Sarah | Backend | 7 Years | Node, DB |
| Mike | DevOps | 4 Years | AWS, Docker |
Code Blocks
JavaScript
function greet(name) {
return `Hello ${name}`
}
console.log(greet("World"))TypeScript
interface User {
id: number
name: string
}
const user: User = {
id: 1,
name: "John"
}Python
def greet(name):
return f"Hello {name}"
print(greet("Python"))Bash
npm install
npm run devJSON
{
"name": "mdx-blog",
"version": "1.0.0"
}HTML
<div class="container">
<h1>Hello World</h1>
</div>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
HTMLAudio
Video
Embedded YouTube
Mermaid Diagram
Nested Lists
-
Frontend
- React
- Next.js
- App Router
- Pages Router
-
Backend
- Node.js
- Express
-
Database
- PostgreSQL
- MongoDB
Checklist
| Task | Status |
|---|---|
| Setup MDX | ✅ |
| Add Components | ✅ |
| Styling | ✅ |
| Deployment | 🚧 |
Form Elements
SVG Example
Progress Element
Meter Element
Keyboard Navigation Table
| Shortcut | Action |
|---|---|
| CTRL + S | Save |
| CTRL + C | Copy |
| CTRL + V | Paste |
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.