Text formatting

Plain text, bolditalicemphasised (with nested emphasis), monospace, small caps, underlined, and struck through.

Text superscript and subscript; H2O and E = mc2 (textual).

Here is red, green and blue text.

Special characters: & % $ # _ { } \. Dashes: hyphen-, en–dash, em—dash, ellipsis… Quotes: “double” and ‘single’; “csquotes nested ‘quote’”. Accents & ligatures: naïve, café, Erdős, ß, æ, fi/fl, nonbreaking space, 2026-06-28.

Lists

  • First bullet.
  • Second bullet, with a nested list:
    • nested A
    • nested B
  1. Ordered one.
  2. Ordered two:
    1. sub-item a
    2. sub-item b

Term One

Its definition.Term Two

Another definition.

Quotations and footnotes

A short block quotation. Pandoc maps this to a Markdown blockquote.

A multi-paragraph quotation environment, which indents the first line of each paragraph.

Second paragraph of the quotation.

Line one of a verse
line two of a verse.

A sentence with a footnote.1 Another one.2

Cross-references and links

See Section 1 on page , and equation [eq:euler] below. Table 1 and Figure 1 are referenced too.

A bare URL https://www.lemonsqueezy.com and a hyperlinked phrase.

Mathematics

Inline math: the area of a circle is A = πr2, and x ∈ ℝ.

$$\int_{-\infty}^{\infty} e^{-x^2}\,\mathrm{d}x = \sqrt{\pi}.$$

eiπ + 1 = 0.

$$\begin{align} (a+b)^2 &= a^2 + 2ab + b^2 \label{eq:binom}\\ &= a^2 + b^2 + 2ab . \end{align}$$

$$f(x) = \begin{cases} x^2 & \text{if } x \ge 0,\\ -x & \text{otherwise.} \end{cases}$$

$$M = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix},\qquad \mathop{\mathrm{Tr}}M = 5, \qquad \left\lVert v \right\rVert = \sqrt{\textstyle\sum_i v_i^2}.$$

Theorems and proofs

Definition 1. A function f : ℝ → ℝ is continuous at a if limx → af(x) = f(a).

Theorem 1 (Pythagoras). In a right triangle, a2 + b2 = c2.

Lemma 2Every convergent sequence is bounded.

Proof. Standard; omitted here as a placeholder. ◻

Remark 1. Theorem environments convert unevenly across pandoc targets—worth checking.

Tables

leftcenterright
abc
ItemCost ($)
2-320252026
Alpha10.0012.50
Beta5.254.75

Figures

A placeholder figure (the mwe example image).

Code

Inline code with \verbprintf("%d", x);, plus \texttt text.

def hello(name):
    return f"Hello, {name}!"
import numpy as np
def softmax(x):
    e = np.exp(x - x.max())
    return e / e.sum()

Miscellany


First line.
Second line after an explicit break.

This claim needs a source and so does this one .

An appendix section

Appendices use letter numbering and still appear in the ToC.

9 D. E. Knuth, The TeXbook, Addison–Wesley, 1984. L. Lamport, LaTeX: A Document Preparation System, 2nd ed., Addison–Wesley, 1994.


  1. This is the footnote text.↩︎
  2. A second footnote, with a urlhttps://example.com.↩︎

Leave a Comment