Markdown Features

A quick tour of the markdown features this blog supports.

Headings and TOC

H2 and H3 headings are auto-collected into the sidebar TOC and get permalink anchors.

Subheading example

Regular prose lives between headings.

Lists

  • Unordered list
  • Supports nesting
    • Second level
    • Second level
  1. Ordered list
  2. Second item

Code highlighting

def fibonacci(n: int) -> list[int]:
    a, b = 0, 1
    out = []
    for _ in range(n):
        out.append(a)
        a, b = b, a + b
    return out
# Install dependencies
npm install
npm run dev

Tables

FeatureLibraryNotes
Parserreact-markdownAST-based
GFMremark-gfmTables, strike
Highlightrehype-highlightBacked by hljs
Heading anchorrehype-slugAuto-generated ids

Quote

One of the most important things in programming is knowing when to stop abstracting.

Math (placeholder)

LaTeX can be added via rehype-katex later. Disabled by default to keep the bundle small.