@@ -32,7 +32,7 @@ tests =
3232 [ testGroup "Inlines"
3333 [ "Plain String" =:
3434 "Hello, World" =?>
35− para (spcSep [ "Hello,", "World" ])
35+ para "Hello, World"
3636
3737 , "Emphasis" =: "*Foo bar*" =?> para (emph . spcSep $ ["Foo", "bar"])
3838
@@ -102,12 +102,35 @@ tests =
102102 , "5 dashes is a horizontal rule" =: "-----" =?> horizontalRule
103103 , "4 dashes with spaces is a horizontal rule" =: "---- " =?> horizontalRule
104104 ]
105+ , testGroup "Paragraphs"
106+ [ "Simple paragraph" =:
107+ T.unlines [ "First line"
108+ , "second line."
109+ ] =?>
110+ para "First line second line."
111+ , "Indented paragraph" =:
112+ T.unlines [ " First line"
113+ , "second line."
114+ ] =?>
115+ para "First line second line."
116+ -- Emacs Muse starts a blockquote on the second line.
117+ -- We copy Amusewiki behavior and require a blank line to start a blockquote.
118+ , "Indentation in the middle of paragraph" =:
119+ T.unlines [ "First line"
120+ , " second line"
121+ , "third line"
122+ ] =?>
123+ para "First line second line third line"
124+ , "Quote" =:
125+ " This is a quotation\n" =?>
126+ blockQuote (para "This is a quotation")
127+ , "Multiline quote" =:
128+ T.unlines [ " This is a quotation"
129+ , " with a continuation"
130+ ] =?>
131+ blockQuote (para "This is a quotation with a continuation")
132+ ]
105133 , "Quote tag" =: "<quote>Hello, world</quote>" =?> blockQuote (para $ text "Hello, world")
106− , "Quote" =: " This is a quotation\n" =?> blockQuote (para $ text "This is a quotation")
107− , "Multiline quote" =: T.unlines [ " This is a quotation"
108− , " with a continuation"
109− ]
110− =?> blockQuote (para $ text "This is a quotation with a continuation")
111134 , "Center" =: "<center>Hello, world</center>" =?> para (text "Hello, world")
112135 , "Right" =: "<right>Hello, world</right>" =?> para (text "Hello, world")
113136 , testGroup "Comments"