@@ -942,13 +942,15 @@ getTagName (TagClose t) = Just t
942getTagName _ = Nothing
942getTagName _ = Nothing
944isInlineTag :: Tag Text -> Bool
944isInlineTag :: Tag Text -> Bool
946− isCommentTag t ||
945+isInlineTag t = isCommentTag t || case t of
947− case getTagName t of
949− Just "script" -> "math/tex" `T.isPrefixOf` fromAttrib "type" t
946+ TagOpen "script" _ -> "math/tex" `T.isPrefixOf` fromAttrib "type" t
947+ TagClose "script" -> True
948+ TagOpen name _ -> isInlineTagName name
949+ TagClose name -> isInlineTagName name
951+ where isInlineTagName x =
950− Just x -> x `Set.notMember` blockTags ||
952+ x `Set.notMember` blockTags ||
951− T.take 1 x == "?" -- processing instr.
953+ T.take 1 x == "?" -- processing instr.
953isBlockTag :: Tag Text -> Bool
955isBlockTag :: Tag Text -> Bool
954isBlockTag t = isBlockTagName || isTagComment t
956isBlockTag t = isBlockTagName || isTagComment t