MDX Component Showcase
Demonstrating all available MDX components and features in the blog
This post demonstrates all available MDX components in the blog for easy reference.
Callout Boxes
Academic Components
Definition
Let be defined on some open interval containing , except possibly at itself. Then we say that the limit of as approaches is , and write , if for every number there is a number such that if then .
Theorem
No three positive integers , , and satisfy the equation for any integer value of greater than 2.
Proof
The proof is too complex to include here. This theorem was proven by Andrew Wiles in 1995.
Mathematics
Inline Math
Einstein’s mass-energy equivalence reveals the relationship between mass and energy.
Block Math
Maxwell’s equations (differential form):
Code Highlighting
Basic Code Block
def fibonacci(n: int) -> int:
"""Calculate the nth Fibonacci number"""
if n <= 1:
return n
return fibonacci(n - 1) + fibonacci(n - 2)
# Test
for i in range(10):
print(f"F({i}) = {fibonacci(i)}")
Code Block with Line Numbers
interface User {
id: number;
name: string;
email: string;
createdAt: Date;
}
function createUser(name: string, email: string): User {
return {
id: Math.random(),
name,
email,
createdAt: new Date()
};
}
Code Diff
Pseudocode
Tabs
// JavaScript example
const sum = (a, b) => a + b;
console.log(sum(1, 2)); // 3# Python example
def sum(a, b):
return a + b
print(sum(1, 2)) # 3// Go example
func sum(a, b int) int {
return a + b
}
fmt.Println(sum(1, 2)) // 3Collapsible Content (Details)
Click to expand for more content
This is hidden detailed content. It can contain any Markdown content, including code blocks, lists, etc.
- Item 1
- Item 2
- Item 3
console.log('Hidden code'); This is expanded by default
This collapsible block is expanded by default.
Chart Components
Chart.js
ECharts
Vega-Lite
Plotly
Diagrams
Mermaid Flowchart
Sequence Diagram
Typograms (ASCII Diagrams)
Maps (GeoMap)
Media Components
Figure
Photo Grid
Video
Audio
Sample Audio
Tables
Basic Table
| Language | Type System | Primary Use |
|---|---|---|
| TypeScript | Static | Web Frontend/Backend |
| Python | Dynamic | Data Science/Scripting |
| Rust | Static | Systems Programming |
| Go | Static | Backend Services |
Blockquote
Simplicity is the ultimate sophistication.
— Leonardo da Vinci
Footnotes
This is a sentence with a footnote1.
Task List
- Create components
- Write documentation
- Add tests
- Deploy
Summary
This post showcased all available MDX components in the blog. You can use these components in your own articles to enrich your content presentation.
Footnotes
-
This is the footnote content. ↩