# Test proves that:
#
# - Anonymous references with identical content get unique IDs.
# - Unreferenced footnote definitions are dropped.
# - Footnote definitions that come before their first reference are dropped.

foo[fn:2:something]

bar[fn::something]

baz[fn::something]

cat[fn::something]

dog[fn:3]

[fn:3] ipsum

[fn:4] lorem

[fn:3] dolar

[fn:5] not referenced

stuff[fn:4] and things