Markdown reader: Improved parsing of nested divs.

Formerly a closing div tag would be missed if it came right
after other block-level tags.
This commit is contained in:
John MacFarlane 2014-02-26 22:53:12 -08:00
parent a208a972c3
commit 4d0bf3c5d6

View file

@ -954,6 +954,8 @@ rawHtmlBlocks = do
htmlBlocks <- many1 $ try $ do
s <- rawVerbatimBlock <|> try (
do (t,raw) <- htmlTag isBlockTag
guard $ t ~/= TagOpen "div" [] &&
t ~/= TagClose "div"
exts <- getOption readerExtensions
-- if open tag, need markdown="1" if
-- markdown_attributes extension is set