This post exercises footnotes of every shape. Toggle Settings → Content → Respect single line breaks on and off and confirm each one still renders correctly in both states.

1. Simple

A plain footnote at the end of a sentence.1

2. Inline formatting inside a footnote

Footnotes can carry bold, italic, code, and links.2

3. Reused reference

The same footnote can be referenced more than once3 — and here is the second reference to it.3

4. Several in one sentence

A single sentence can hold several distinct footnotes4 in a single5 line.6

5. Multiple paragraphs

A footnote whose body spans several paragraphs.7

6. Unordered list inside a footnote

A footnote containing a bulleted list.8

7. Ordered list inside a footnote

A footnote containing a numbered list.9

8. Blockquote inside a footnote

A footnote containing a blockquote.10

9. Code block inside a footnote

A footnote containing a code block (indented, so it survives Roe’s fenced-block handling).11

10. Kitchen sink

One footnote that combines everything — paragraphs, inline formatting, a list, and a quote.12

11. References that live inside other blocks

The reference should also work when it sits inside other elements:

  • A list item that ends with a footnote.13

A blockquote that ends with a footnote.14

12. Long note with soft breaks

This one is deliberately written across several lines in the source to see how the footnote body behaves when Respect single line breaks is on versus off.15

  1. 1.

    Just a short, single-line note.

  2. 2.

    This note has bold text, italic text, some inline code, and a link to Codeberg.

  3. 3.

    One definition, two references. The backlink(s) should account for both.

  4. 4.

    The first of three.

  5. 5.

    The second of three.

  6. 6.

    The third of three.

  7. 7.

    First paragraph of the note.

    Second paragraph — indented four spaces so Kramdown keeps it inside the footnote.

    Third paragraph, still part of the same note.

  8. 8.

    Some points to consider:

    • First point
    • Second point, with emphasis
    • Third point, with code

  9. 12.

    In order:

    1. Step one
    2. Step two
    3. Step three

  10. 16.

    As someone once said:

    The best way to predict the future is to invent it.

    — attributed to Alan Kay

  11. 17.

    Here’s a snippet:

    def hello
      puts "world"
    end
    

  12. 18.

    This note opens with a paragraph containing bold, italic, and code.

    Then a list:

    • alpha
    • beta
    • gamma

    Then a quote:

    Everything, everywhere, all at once.

    And a closing paragraph to wrap it up.

  13. 22.

    Referenced from inside a list item.

  14. 23.

    Referenced from inside a blockquote.

  15. 24.

    Line one of the note. Line two written directly under it. Line three, same paragraph in the source.