@@ -32,7 +32,7 @@ tests =
32 [ testGroup "Inlines"
32 [ testGroup "Inlines"
33 [ "Plain String" =:
33 [ "Plain String" =:
34 "Hello, World" =?>
34 "Hello, World" =?>
35− para (spcSep [ "Hello,", "World" ])
35+ para "Hello, World"
37 , "Emphasis" =: "*Foo bar*" =?> para (emph . spcSep $ ["Foo", "bar"])
37 , "Emphasis" =: "*Foo bar*" =?> para (emph . spcSep $ ["Foo", "bar"])
@@ -102,12 +102,35 @@ tests =
102 , "5 dashes is a horizontal rule" =: "-----" =?> horizontalRule
102 , "5 dashes is a horizontal rule" =: "-----" =?> horizontalRule
103 , "4 dashes with spaces is a horizontal rule" =: "---- " =?> horizontalRule
103 , "4 dashes with spaces is a horizontal rule" =: "---- " =?> horizontalRule
105+ , testGroup "Paragraphs"
106+ [ "Simple paragraph" =:
107+ T.unlines [ "First line"
110+ para "First line second line."
111+ , "Indented paragraph" =:
112+ T.unlines [ " First line"
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"
123+ para "First line second line third line"
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"
131+ blockQuote (para "This is a quotation with a continuation")
105 , "Quote tag" =: "<quote>Hello, world</quote>" =?> blockQuote (para $ text "Hello, world")
133 , "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"
110− =?> blockQuote (para $ text "This is a quotation with a continuation")
111 , "Center" =: "<center>Hello, world</center>" =?> para (text "Hello, world")
134 , "Center" =: "<center>Hello, world</center>" =?> para (text "Hello, world")
112 , "Right" =: "<right>Hello, world</right>" =?> para (text "Hello, world")
135 , "Right" =: "<right>Hello, world</right>" =?> para (text "Hello, world")
113 , testGroup "Comments"
136 , testGroup "Comments"