An Example Post
Just a random post to show various mdx features
1. Image with a Caption
Here's an example of a single image with a caption:
2. Two Images Side by Side
Use the ImageWrapper component to display images side by side:
3. Expandable Information Note
Use <details> and <summary> tags to create expandable sections:
Click to expand and see more information
Here's the hidden content that appears when you expand this section.
You can include any content here:
- Lists
- Images
- Code blocks
- Links
4. Example Note
Use the :::note syntax to create informational notes:
This is a basic note.
This is a note with a custom title.
This is a tip! You can also use :::tip, :::warning, :::caution, and :::danger for different types of admonitions.
5. SVG Image
SVG images are handled the same way as regular images:
6. Command Line Code
Display command-line code with syntax highlighting:
Bash Example
echo hello world
JSON Example
{
"lorem": {
"ipsum": {
"dolor": "sit amet",
"consectetur": "adipiscing elit",
"sed": {
"do": "eiusmod tempor",
"incididunt": 42
}
}
}
}
7. Table
Create tables using standard Markdown syntax:
Basic Table
| Lorem | Ipsum | Dolor Sit |
|---|---|---|
consectetur | ✅ | adipiscing elit sed do |
eiusmod tempor | ✅ | incididunt ut labore |
dolore magna | ❌ | aliqua enim |
minim veniam | ❌ | quis nostrud |
Glossary Table
| Lorem | Ipsum | Dolor |
|---|---|---|
| Consectetur adipiscing / Elit sed / Do | Eiusmod tempor incididunt ut labore | Dolore magna, Aliqua enim, Minim veniam, Quis, Nostrud |
| Exercitation | Ullamco laboris nisi ut aliquip ex ea commodo consequat | Duis, Aute, Irure, Dolor, Reprehenderit |
| Voluptate | Velit esse cillum dolore eu fugiat nulla pariatur | Excepteur sint, Occaecat, Cupidatat, Non proident |
| Culpa | Qui officia deserunt mollit anim id est laborum | Sed perspiciatis, Unde omnis, Iste natus |
8. Math Equations (KaTeX)
You can write beautiful math equations using KaTeX:
Inline Math
Write inline math by wrapping LaTeX equations between $:
Let be Riemann integrable. Let be . Then is continuous, and at all such that is continuous at , is differentiable at with .
Block Math
For display mode equations, use $$:
Conclusion
This example post demonstrates all the key MDX components you can use in your blog posts. Mix and match these elements to create engaging and informative content!
