
Hello World – Your First Markdoc Post
Jane Developer•
A quick demo post showing front‑matter fields and basic Markdoc syntax.
Welcome to Your New Blog
This is a Markdoc document rendered by Next.js App Router.
Markdoc supports custom tags like this “callout”—define them inmarkdoc/config.ts
and they’ll render as React components.
Front‑matter recap
Field | Purpose |
---|---|
title | Page <title> and on‑page <h1> |
description | Meta & teaser on the blog index |
author | Shown under the title |
date | ISO (YYYY‑MM‑DD ) is safest |
cover | Hero image URL/path |
Markdown examples
Inline code
Press npx create-next-app@latest
to scaffold a project.
Code block
export default function greet(name: string) { return `Hello, ${name}!` }