@@ -659,6 +659,15 @@ tests =
659659 ] =?>
660660 para (text "Start recursion here" <>
661661 note (para "Recursion continues here[1]"))
662+ , "Nested footnotes" =:
663+ T.unlines [ "Footnote: [1]"
664+ , ""
665+ , "[1] Nested: [2]"
666+ , ""
667+ , "[2] No recursion: [1]"
668+ ] =?>
669+ para (text "Footnote: " <>
670+ note (para (text "Nested: " <> note (para $ text "No recursion: [1]"))))
662671 , "No zero footnotes" =:
663672 T.unlines [ "Here is a footnote[0]."
664673 , ""