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:
parent
db207904ef
commit
b1ffdf3b01
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue