@@ -178,7 +178,7 @@ blockToDokuWiki _ (CodeBlock (_,classes,_) str) = do
178blockToDokuWiki opts (BlockQuote blocks) = do
178blockToDokuWiki opts (BlockQuote blocks) = do
179 contents <- blockListToDokuWiki opts blocks
179 contents <- blockListToDokuWiki opts blocks
180 if isSimpleBlockQuote blocks
180 if isSimpleBlockQuote blocks
181− then return $ "> " ++ contents
181+ then return $ unlines $ map ("> " ++) $ lines contents
182 else return $ "<HTML><blockquote>\n" ++ contents ++ "</blockquote></HTML>"
182 else return $ "<HTML><blockquote>\n" ++ contents ++ "</blockquote></HTML>"
184blockToDokuWiki opts (Table capt aligns _ headers rows) = do
184blockToDokuWiki opts (Table capt aligns _ headers rows) = do
@@ -352,9 +352,7 @@ isPlainOrPara (Para _) = True
352isPlainOrPara _ = False
352isPlainOrPara _ = False
354isSimpleBlockQuote :: [Block] -> Bool
354isSimpleBlockQuote :: [Block] -> Bool
355−isSimpleBlockQuote [BlockQuote bs] = isSimpleBlockQuote bs
355+isSimpleBlockQuote bs = all isPlainOrPara bs
356−isSimpleBlockQuote [b] = isPlainOrPara b
357−isSimpleBlockQuote _ = False
359-- | Concatenates strings with line breaks between them.
357-- | Concatenates strings with line breaks between them.
360vcat :: [String] -> String
358vcat :: [String] -> String