git.iko.soy/typeable/pandoc
on master help sign in
Markdown reader: Improved parsing of nested divs.

Formerly a closing div tag would be missed if it came right after other block-level tags.

commit4d0bf3c5d685cbee3b13f562503a572af803ab95 authorJohn MacFarlane <jgm@berkeley.edu> dateWed 26 Feb 2014, 22:53 (13 years ago) parenta208a97
1 file changed+2
src/Text/Pandoc/Readers/Markdown.hs+2
src/Text/Pandoc/Readers/Markdown.hs+2
@@ -954,6 +954,8 @@ rawHtmlBlocks = do
954954 htmlBlocks <- many1 $ try $ do
955955 s <- rawVerbatimBlock <|> try (
956956 do (t,raw) <- htmlTag isBlockTag
957+ guard $ t ~/= TagOpen "div" [] &&
958+ t ~/= TagClose "div"
957959 exts <- getOption readerExtensions
958960 -- if open tag, need markdown="1" if
959961 -- markdown_attributes extension is set