Posts are written in MDX: Markdown with the option to use components. This page tours the features, so you can copy what you need.
Text and lists
You can use bold, italic, inline code and links. Task lists and tables come from GitHub-flavoured Markdown.
- Write the first draft
- Add a cover image
- Publish
| Feature | Where it lives |
|---|---|
| Posts | content/blog |
| Authors | content/authors |
| Site settings | lib/site.js |
Callouts
Code blocks
Add a title, line numbers and highlighted lines right after the opening backticks.
export function greet(name: string) {
const message = `Hello, ${name}!`;
return message;
}Diffs, highlights and focus
Mark lines with a comment: [!code ++], [!code --], [!code highlight] or [!code focus].
const total = items.length;
const total = items.filter(Boolean).length;
console.log(total); Terminal blocks
Shell languages get a terminal frame automatically.
npm install
npm run devMath
Inline math looks like , and display math gets its own line:
Images
Put images in public/ and reference them with a normal Markdown image. Give a post a cover image with the image field in its frontmatter.

