1.1 Markdown & math

This page is numbered 1.1 — chapter 1, first page (order: 1).

Text formatting

You can write bold, italic, and inline code. Lists work too:

  • first item
  • second item
    • a nested item
  • third item

And numbered lists:

  1. step one
  2. step two
  3. step three

Block quotes look like this — handy for a definition or a key remark.

A fenced code block:

const greet = (name: string) => `Hello, ${name}!`;

Inline math

Write math between single dollar signs and it flows inside the sentence: the Pythagorean theorem is a2+b2=c2a^2 + b^2 = c^2, and Euler’s identity eiπ+1=0e^{i\pi} + 1 = 0 ties five constants together.

Display math

Put $$ on their own lines for big, centred equations:

ex2dx=π\int_{-\infty}^{\infty} e^{-x^2}\,dx = \sqrt{\pi} n=11n2=π26\sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}