Fixed htmlComment parser.
(Added a needed try.) git-svn-id: https://pandoc.googlecode.com/svn/trunk@1621 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
parent
39f6af5de4
commit
14a25b287c
1 changed files with 1 additions and 1 deletions
|
@ -348,7 +348,7 @@ htmlComment :: GenParser Char st [Char]
|
|||
htmlComment = try $ do
|
||||
string "<!--"
|
||||
comment <- many $ noneOf "-"
|
||||
<|> try (char '-' >>~ notFollowedBy (char '-' >> char '>'))
|
||||
<|> try (char '-' >>~ notFollowedBy (try (char '-' >> char '>')))
|
||||
string "-->"
|
||||
return $ "<!--" ++ comment ++ "-->"
|
||||
|
||||
|
|
Loading…
Reference in a new issue