git.iko.soy/typeable/pandoc
on master help sign in
Fixed HTML reader.
commite43ea03410db11276eff9f8112625415f045eab6 authorJohn MacFarlane <jgm@berkeley.edu> dateFri 2 Jun 2017, 10:10 (9 years ago) parenteb6fb62
1 file changed+3−2
src/Text/Pandoc/Readers/HTML.hs+3−2
src/Text/Pandoc/Readers/HTML.hs+3−2
@@ -924,8 +924,9 @@ isBlockTag t = tagOpen isBlockTagName (const True) t ||
924924 tagComment (const True) t
925925 where isBlockTagName ('?':_) = True
926926 isBlockTagName ('!':_) = True
927− isBlockTagName x = x `elem` blockTags
928− || x `elem` eitherBlockOrInline
927+ isBlockTagName x = x `Set.member` blockTags
928+ || x `Set.member`
929+ eitherBlockOrInline
929930
930931isTextTag :: Tag String -> Bool
931932isTextTag = tagText (const True)