Welcome to my new MDX blog!
This is a demonstration of rendering Markdown directly within a Next.js App Router project using next-mdx-remote and styled seamlessly with @tailwindcss/typography.
Features of this setup
- MDX Support: I can write in Markdown and embed React components if I want!
- Typography Plugin: It uses the official Tailwind typography plugin for beautiful, responsive prose.
- Frontmatter Parsing: Using
gray-matterto extract thetitle,date, anddescription.
Code Example
Here is a quick code block to text syntax highlighting styling capabilities in the future:
function greet(name) {
return `Hello, ${name}!`
}
console.log(greet('World'))"The best way to predict the future is to invent it." - Alan Kay
This blockquote should be styled automatically!