Kaiwei's Page
Back to blog

Everything This Blog Can Render

This post is a living test of the markdown features this blog supports.

Text formatting

You can write bold, italic, strikethrough, and inline code. Links work too: Next.js docs.

Blockquotes are great for pulling out important ideas or quoting other people.

Code blocks

Syntax highlighting works for most languages:

type Post = {
  slug: string;
  title: string;
  tags: string[];
};

export function sortByDate(posts: Post[]): Post[] {
  return [...posts].sort((a, b) => (a.slug < b.slug ? 1 : -1));
}
def fib(n: int) -> int:
    a, b = 0, 1
    for _ in range(n):
        a, b = b, a + b
    return a

Tables

FeatureSupported
TablesYes
Task listsYes
FootnotesNo

Lists

  1. Ordered lists
  2. Work as expected
    • And can nest
    • Unordered items
  • GFM task lists
  • are also supported

Images

Images use standard markdown syntax and can point at files in public/ or external URLs.