April 13, 2026
MDX Showcase â Everything This Blog Can Do
A boilerplate test post demonstrating MDX capabilities: YouTube embeds, images, code blocks, LaTeX, admonitions, collapsibles, tabs, and emojis.
Welcome to the MDX Showcase post. This page demonstrates every feature this blog supports. đ
đ Text Formatting
You can use bold, italic, strikethrough, and inline code. Combine them: bold code.
Block quote:
"Any sufficiently advanced technology is indistinguishable from magic."
â Arthur C. Clarke
đŧī¸ Images
A standard Markdown image with alt text:
đŦ YouTube Embed
Embed a YouTube video using a native <iframe>:
đģ Code Blocks
Syntax-highlighted code blocks powered by rehype-pretty-code:
// TypeScript â type-safe fetch utility
async function fetchUser(id: string): Promise<User> {
const res = await fetch(`/api/users/${id}`);
if (!res.ok) throw new Error(`HTTP ${res.status}`);
return res.json() as Promise<User>;
}# Python â recursive Fibonacci
def fib(n: int) -> int:
if n <= 1:
return n
return fib(n - 1) + fib(n - 2)
print([fib(i) for i in range(10)])# Install dependencies
pnpm install
# Start dev server
pnpm devInline code: call console.log("hello") or reference process.env.NODE_ENV.
â LaTeX / Math
Inline math: The quadratic formula is .
Block math (display mode):
Maxwell's equations in differential form:
âšī¸ Admonitions
This is a note admonition. Use it to provide additional context that is useful but not critical.
This is a tip admonition. Use it for best practices and helpful hints.
This is a warning admonition. Highlight potentially dangerous actions or important caveats here.
This is a danger admonition. Use it for critical warnings like data loss or security issues.
đ Content Tabs
# Python implementation
def greet(name: str) -> str:
return f"Hello, {name}!"đŊ Collapsible Sections
Native HTML <details> elements work in MDX:
Click to expand â implementation details
Here is the hidden content. You can put anything here:
const secret = "This was hidden!";
console.log(secret);- Item one inside the collapsible
- Item two inside the collapsible
Math inside a collapsible:
Another collapsible â performance notes
O(1) lookups with hash maps are generally preferable to O(n) linear scans.
đ Emojis
Emojis work directly in MDX via Unicode:
đ Rocket launch â deploying to production.
đ Bug squashed â all tests passing.
đ¨ Design update â looking sharp now.
đĨ Hot take â tabs > spaces.
đĄ Pro tip â premature optimization is the root of all evil.
đ Tables
| Language | Paradigm | Typing | Year |
|---|---|---|---|
| Python | Multi-paradigm | Dynamic | 1991 |
| TypeScript | OOP / FP | Static | 2012 |
| Rust | Systems | Static | 2015 |
| Go | Concurrent | Static | 2009 |
â Task Lists
- Set up MDX with
next-mdx-remote - Add syntax highlighting via
rehype-pretty-code - Add math support with
remark-math+rehype-katex - Add custom React components in MDX
- Set up RSS feed
That's a wrap! This post covers the full range of MDX capabilities available in this blog. đ