Skip to content

Commit

Permalink
Fixed HTML reader.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Jun 2, 2017
1 parent eb6fb62 commit e43ea03
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Text/Pandoc/Readers/HTML.hs
Original file line number Diff line number Diff line change
Expand Up @@ -924,8 +924,9 @@ isBlockTag t = tagOpen isBlockTagName (const True) t ||
tagComment (const True) t
where isBlockTagName ('?':_) = True
isBlockTagName ('!':_) = True
isBlockTagName x = x `elem` blockTags
|| x `elem` eitherBlockOrInline
isBlockTagName x = x `Set.member` blockTags
|| x `Set.member`
eitherBlockOrInline

isTextTag :: Tag String -> Bool
isTextTag = tagText (const True)
Expand Down

0 comments on commit e43ea03

Please sign in to comment.