Example MDX Blog Post
Demonstrating All Features
This example post shows how to use MDX with all available components, markdown syntax, and interactive elements.
MDX enables writing blog content in Markdown → React components work inline → Interactive diagrams and code blocks just work → Author productivity increased
Markdown Basics
Standard markdown works seamlessly. You can use bold text, italic text, and inline code.
Lists
- First item with details
- Second item with more context
- Third item wrapping up
Numbered Lists
- Step one of the process
- Step two continues here
- Final step completes
Links and Emphasis
Visit the BreachLogic Academy to learn more about security research.
Blockquotes work too! Use them for important callouts or quotes from sources.
Images
Images can be added using standard markdown syntax:
Cybersecurity concept - digital lock and network
Image Gallery
Use the ImageGallery component for a responsive grid with lightbox support. Click any image to view full size:
- Supports mixed vertical and horizontal images
- Click to open lightbox view
- Hover to see image caption
- Responsive grid layout
Video Embeds
Embed YouTube videos using the YouTube component. Just pass the video ID:
DEFCON Talk Example
Usage
<YouTube id="VIDEO_ID" title="Optional title" />The component automatically:
- Maintains 16:9 aspect ratio
- Responsive on all screen sizes
- Styled to match the blog theme
Code Blocks
Fenced code blocks with syntax highlighting:
// Example JavaScript code
function analyzePayload(input) {
const decoded = atob(input);
const pattern = /malicious|suspicious/gi;
return pattern.test(decoded);
}Or use the CodeBlock component directly for more control:
# Python example
import hashlib
def hash_indicator(ioc: str) -> str:
"""Generate SHA256 hash of an indicator."""
return hashlib.sha256(ioc.encode()).hexdigest()UI Components
Callout Variants
This is an informational callout for general notes and tips.
Use this for important warnings that need attention.
Critical security issues or breaking changes go here.
Positive outcomes, fixes, or mitigations.
Badges
Use badges inline: CVE-2025-1234 or MALWARE or Patched
Interactive Flow Diagram
Author Writes MDX
Author creates an MDX file with frontmatter metadata and content mixing markdown with React components.
---
title: My Post
type: technique
---
# Content hereScreenshot Flow
Use ScreenshotFlow for interactive walkthroughs of UI screenshots. Define crop regions to zoom into specific areas of an image.

Full Page View
The Facebook login page with the branding and tagline on the left, and the login form on the right.