Markdown Syntax Showcase

Jun 28, 2026

This post demonstrates the formatting features available out of the box — from basic text styling to syntax-highlighted code blocks and callouts.

中文版见 Markdown 语法示范。

Table of contents

Text formatting

You can make text bold, italic, both at once, strikethrough, and inline code. Links look like this.

Footnotes are supported too.1

1

This is a footnote — it renders at the bottom of the page.

Lists

Unordered:

  • First item
  • Second item
    • Nested item
    • Another nested item
  • Third item

Ordered:

  1. Clone the repository
  2. Run pnpm install
  3. Start the dev server

Task list:

  • Finish the showcase post
  • Add Chinese translation
  • Deploy to production

Blockquotes

Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

Callouts

Obsidian-style callouts are supported:

Useful side information the reader should notice.

Keyboard shortcuts can boost your productivity a lot.

This action cannot be undone — proceed with caution.

Remember to check your environment variables before deploying.

Code

Inline code: const greeting = "Hello, world.";

Code block with a file-name label:

export function greet(name: string): string {
  return `Hello, ${name}!`;
}

console.log(greet("world"));

Highlight a line ([!code highlight]):

function add(a, b) {
  return a + b; // [!code highlight]
}

Diff annotations ([!code ++] / [!code --]):

function sum(numbers: number[]) {
  let total = 0; // [!code --]
  return numbers.reduce((acc, n) => acc + n, 0); // [!code ++]
}

Word highlight ([!code word:hoicau]):

git clone https://github.com/hoicau/hoicau-index-source.git # [!code word:hoicau]

Tables

CommandAction
zola serveStart the local dev server
zola buildBuild the site and generate the static files
zola checkVerify links and templates

Images

Default OG image

Horizontal rule


That's a tour of the formatting this blog supports — copy this file as a starting point for your own posts. 🙂