Text formatting
Plain text, bold, italic, emphasised (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
- Ordered one.
- Ordered two:
- sub-item a
- 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
quotationenvironment, 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 2. Every convergent sequence is bounded.
Proof. Standard; omitted here as a placeholder. ◻
Remark 1. Theorem environments convert unevenly across pandoc targets—worth checking.
Tables
| left | center | right |
| a | b | c |
| Item | Cost ($) | |
|---|---|---|
| 2-3 | 2025 | 2026 |
| Alpha | 10.00 | 12.50 |
| Beta | 5.25 | 4.75 |
Figures
mwe example image).Code
Inline code with \verb: printf("%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.
- This is the footnote text.↩︎
- A second footnote, with a
url: https://example.com.↩︎