Sample Blog Post
Published on 2023-10-27Introduction
Welcome to the Sample Blog Post! This post demonstrates how MDX content is rendered in our Next.js blog.
Features
- MDX Support: You can use React components directly in your markdown.
- Syntax Highlighting: Code blocks are automatically syntax highlighted (if configured).
- Custom Components: We can map custom components to standard HTML elements.
Code Example
Here is a simple JavaScript function:
Source Code
function greet(name) {
return `Hello, ${name}!`;
}
React Component
We can also embed React components. Here is a simple button:
Conclusion
This concludes our sample post. Use this as a template for your own posts.