@@ -60,7 +60,7 @@ import qualified Text.Blaze.XHtml1.Transitional.Attributes as A
6060import Text.Blaze.Renderer.String (renderHtml)
6161import Text.TeXMath
6262import Text.XML.Light.Output
63−import Text.XML.Light (unode, elChildren, add_attr, unqual)
63+import Text.XML.Light (unode, elChildren, unqual)
6464import qualified Text.XML.Light as XML
6565import System.FilePath (takeExtension)
6666import Data.Monoid
@@ -639,7 +639,9 @@ annotateMML e tex = math (unode "semantics" [cs, unode "annotation" (annotAttrs,
639639 [] -> unode "mrow" ()
640640 [x] -> x
641641 xs -> unode "mrow" xs
642− math = add_attr (XML.Attr (unqual "xmlns") "http://www.w3.org/1998/Math/MathML") . unode "math"
642+ math childs = XML.Element q as [XML.Elem childs] l
643+ where
644+ (XML.Element q as _ l) = e
643645 annotAttrs = [XML.Attr (unqual "encoding") "application/x-tex"]
644646
645647