@@ -1086,67 +1086,82 @@ tests =
1086 para (image "guess.jpg" "fig:" "")
1086 para (image "guess.jpg" "fig:" "")
1089+ , testGroup "Footnotes"
1089− , "Footnote" =:
1090+ [ "Footnote" =:
1090− T.unlines [ "A footnote[1]"
1091+ T.unlines [ "A footnote[1]"
1092− , "[1] First paragraph"
1093+ , "[1] First paragraph"
1094− , "second paragraph"
1095+ , "second paragraph"
1096− para (mconcat
1097+ para (mconcat
1097− [ "A", space, "footnote"
1098+ [ "A", space, "footnote"
1098− , note $ mconcat [ para ("First" <> space <> "paragraph")
1099+ , note $ mconcat [ para ("First" <> space <> "paragraph")
1099− , para ("second" <> space <> "paragraph")
1100+ , para ("second" <> space <> "paragraph")
1103− , "Two footnotes" =:
1104− T.unlines [ "Footnotes[fn:1][fn:2]"
1106− , "[fn:1] First note."
1108− , "[fn:2] Second note."
1112− , note $ para ("First" <> space <> "note.")
1113− , note $ para ("Second" <> space <> "note.")
1116− , "Emphasized text before footnote" =:
1117− T.unlines [ "/text/[fn:1]"
1123− , note . para $ "unicorn"
1126− , "Footnote that starts with emphasized text" =:
1127− T.unlines [ "text[fn:1]"
1129− , "[fn:1] /emphasized/"
1133− , note . para $ emph "emphasized"
1136− , "Footnote followed by header" =:
1104+ , "Two footnotes" =:
1137− T.unlines [ "Another note[fn:yay]"
1105+ T.unlines [ "Footnotes[fn:1][fn:2]"
1139− , "[fn:yay] This is great!"
1107+ , "[fn:1] First note."
1141− , "** Headline"
1109+ , "[fn:2] Second note."
1144− [ para (mconcat
1111+ para (mconcat
1145− [ "Another", space, "note"
1112+ [ "Footnotes"
1146− , note $ para ("This" <> space <> "is" <> space <> "great!")
1113+ , note $ para ("First" <> space <> "note.")
1114+ , note $ para ("Second" <> space <> "note.")
1117+ , "Emphasized text before footnote" =:
1118+ T.unlines [ "/text/[fn:1]"
1124+ , note . para $ "unicorn"
1127+ , "Footnote that starts with emphasized text" =:
1128+ T.unlines [ "text[fn:1]"
1130+ , "[fn:1] /emphasized/"
1134+ , note . para $ emph "emphasized"
1137+ , "Footnote followed by header" =:
1138+ T.unlines [ "Another note[fn:yay]"
1140+ , "[fn:yay] This is great!"
1146+ [ "Another", space, "note"
1147+ , note $ para ("This" <> space <> "is" <> space <> "great!")
1148− , headerWith ("headline", [], []) 2 "Headline"
1149+ , headerWith ("headline", [], []) 2 "Headline"
1152+ , "Footnote followed by two blank lines" =:
1153+ T.unlines [ "footnote[fn:blanklines]"
1155+ , "[fn:blanklines] followed by blank lines"
1161+ [ para ("footnote" <> note (para "followed by blank lines"))
1152 , testGroup "Lists" $
1167 , testGroup "Lists" $