Fixed bug in Markdown raw HTML parsing.

This was a regression, with the rewrite of `htmlInBalanced`
(from `Text.Pandoc.Readers.HTML`) in 1.17.

It caused newlines to be omitted in raw HTML blocks.

Closes #2804.
This commit is contained in:
John MacFarlane 2016-03-22 16:56:10 -07:00
parent db207904ef
commit b1ffdf3b01

View file

@ -939,7 +939,7 @@ htmlInBalanced f = try $ do
(TagClose _ : TagPosition er ec : _) -> do
let ls = er - sr
let cs = ec - sc
lscontents <- concat <$> count ls anyLine
lscontents <- unlines <$> count ls anyLine
cscontents <- count cs anyChar
(_,closetag) <- htmlTag (~== TagClose tn)
return (lscontents ++ cscontents ++ closetag)