@@ -5,7 +5,7 @@ import Text.Pandoc.Options
55import Text.Pandoc.Definition
66import Text.Pandoc.Builder
77import Text.XML.Light
8−import Text.Pandoc.Compat.TagSoupEntity (lookupEntity)
8+import Text.HTML.TagSoup.Entity (lookupEntity)
99import Data.Either (rights)
1010import Data.Generics
1111import Data.Char (isSpace)
@@ -564,7 +564,7 @@ normalizeTree = everywhere (mkT go)
564564 go xs = xs
565565
566566convertEntity :: String -> String
567−convertEntity e = maybe (map toUpper e) (:[]) (lookupEntity e)
567+convertEntity e = maybe (map toUpper e) id (lookupEntity e)
568568
569569-- convenience function to get an attribute value, defaulting to ""
570570attrValue :: String -> Element -> String
@@ -916,7 +916,7 @@ elementToStr x = x
916916parseInline :: Content -> DB Inlines
917917parseInline (Text (CData _ s _)) = return $ text s
918918parseInline (CRef ref) =
919− return $ maybe (text $ map toUpper ref) (text . (:[])) $ lookupEntity ref
919+ return $ maybe (text $ map toUpper ref) (text) $ lookupEntity ref
920920parseInline (Elem e) =
921921 case qName (elName e) of
922922 "equation" -> equation displayMath