@@ -5,7 +5,7 @@ import Text.Pandoc.Options
5import Text.Pandoc.Definition
5import Text.Pandoc.Definition
6import Text.Pandoc.Builder
6import Text.Pandoc.Builder
7import Text.XML.Light
7import Text.XML.Light
8−import Text.Pandoc.Compat.TagSoupEntity (lookupEntity)
8+import Text.HTML.TagSoup.Entity (lookupEntity)
9import Data.Either (rights)
9import Data.Either (rights)
10import Data.Generics
10import Data.Generics
11import Data.Char (isSpace)
11import Data.Char (isSpace)
@@ -564,7 +564,7 @@ normalizeTree = everywhere (mkT go)
564 go xs = xs
564 go xs = xs
566convertEntity :: String -> String
566convertEntity :: String -> String
567−convertEntity e = maybe (map toUpper e) (:[]) (lookupEntity e)
567+convertEntity e = maybe (map toUpper e) id (lookupEntity e)
569-- convenience function to get an attribute value, defaulting to ""
569-- convenience function to get an attribute value, defaulting to ""
570attrValue :: String -> Element -> String
570attrValue :: String -> Element -> String
@@ -916,7 +916,7 @@ elementToStr x = x
916parseInline :: Content -> DB Inlines
916parseInline :: Content -> DB Inlines
917parseInline (Text (CData _ s _)) = return $ text s
917parseInline (Text (CData _ s _)) = return $ text s
918parseInline (CRef ref) =
918parseInline (CRef ref) =
919− return $ maybe (text $ map toUpper ref) (text . (:[])) $ lookupEntity ref
919+ return $ maybe (text $ map toUpper ref) (text) $ lookupEntity ref
920parseInline (Elem e) =
920parseInline (Elem e) =
921 case qName (elName e) of
921 case qName (elName e) of
922 "equation" -> equation displayMath
922 "equation" -> equation displayMath