Markdown Test

2025-03-08

Quick test of various markdown features.

Something that needs a citation1.

Code Blocks

This should be syntax-highlighted offline on site build, delivered in nice accessible plain HTML.

fib :: Int -> Int
fib 0 = 0
fib 1 = 1
fib n = fib (n - 1) + fib (n - 2)

Latex Math

Also should be rendered offline, served as a big <mathml> block without any JS needed on the page.

fib(n)={0if n=01if n=1fib(n1)+fib(n2)otherwise=15((1+52)n(152)n) \text{fib}(n) = \begin{cases} 0 & \text{if } n = 0 \\ 1 & \text{if } n = 1 \\ \text{fib}(n - 1) + \text{fib}(n - 2) & \text{otherwise} \end{cases} = \frac{1}{\sqrt{5}} \left( \left( \frac{1 + \sqrt{5}}{2} \right)^n - \left( \frac{1 - \sqrt{5}}{2} \right)^n \right)

And inline math: fib(n)ϕn5\text{fib}(n) \approx \frac{\phi^n}{\sqrt{5}} is a pretty good approximation.


  1. Footnote for the citation.

    Second paragraph. ↩︎