@@ -762,6 +762,13 @@ tests =
762762 , " > Baz"
763763 ] =?>
764764 para ("Foo" <> note (para "Bar" <> lineBlock ["Baz"]))
765+ , "Footnote ending in self-terminating element and followed by paragraph" =:
766+ T.unlines [ "Foo[1]"
767+ , ""
768+ , "[1] > bar"
769+ , "baz"
770+ ] =?>
771+ para (str "Foo" <> note (lineBlock ["bar"])) <> para (str "baz")
765772 , test emacsMuse "Emacs multiparagraph footnotes"
766773 (T.unlines
767774 [ "First footnote reference[1] and second footnote reference[2]."
@@ -1170,6 +1177,11 @@ tests =
11701177 ] =?>
11711178 bulletList [ lineBlock [ "foo" ] ] <> bulletList [ para "bar" ]
11721179 ]
1180+ , "List ending in self-terminating element and followed by paragraph" =:
1181+ T.unlines [ " - > Foo"
1182+ , "bar"
1183+ ] =?>
1184+ bulletList [lineBlock ["Foo"]] <> para (str "bar")
11731185 -- Test that definition list requires a leading space.
11741186 -- Emacs Muse does not require a space, we follow Amusewiki here.
11751187 , "Not a definition list" =: