@@ -108,6 +108,12 @@ tests =
108108 , "Subsubsection" =:
109109 "***** Fifth level\n" =?>
110110 header 5 "Fifth level"
111+ , "No headers below top level" =:
112+ T.unlines [ "Foo[1]"
113+ , "[1] * Bar"
114+ ] =?>
115+ para (text "Foo" <>
116+ note (para "* Bar"))
111117 ]
112118 , testGroup "Footnotes"
113119 [ "Simple footnote" =:
@@ -273,5 +279,16 @@ tests =
273279 , para "c"
274280 ]
275281 ]
282+ -- Headers in first column of list continuation are not allowed
283+ , "No headers in list continuation" =:
284+ T.unlines
285+ [ " - Foo"
286+ , ""
287+ , " * Bar"
288+ ] =?>
289+ bulletList [ mconcat [ para "Foo"
290+ , para "* Bar"
291+ ]
292+ ]
276293 ]
277294 ]