Mediawiki reader: Fixed last commit.

This commit is contained in:
John MacFarlane 2013-03-28 10:51:14 -07:00
parent 48b23d491d
commit 998695001a

View file

@ -336,7 +336,7 @@ preformatted = try $ do
(htmlTag (~== TagOpen "nowiki" []) *>
manyTill anyChar (htmlTag (~== TagClose "nowiki")))
let inline' = whitespace' <|> endline' <|> nowiki'
<|> (notFollowedBy newline *> inline)
<|> (try $ notFollowedBy newline *> inline)
let strToCode (Str s) = Code ("",[],[]) s
strToCode x = x
contents <- mconcat <$> many1 inline'