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:
parent
a208a972c3
commit
4d0bf3c5d6
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue