HTML writer: Put mathjax in span with class "math".
Closes #562.
commit6442e185b3bbdbe3d8207fce94de93fbd6979da1
authorJohn MacFarlane <jgm@berkeley.edu>
dateWed 11 Jul 2012, 16:54 (14 years ago)
parent9c4bb2f
src/Text/Pandoc/Writers/HTML.hs+1−1
@@ -638,7 +638,7 @@ inlineToHtml opts inline =
638638 Left _ -> inlineListToHtml opts
639639 (readTeXMath str) >>= return .
640640 (H.span ! A.class_ "math")
641− MathJax _ -> return $ toHtml $
641+ MathJax _ -> return $ H.span ! A.class_ "math" $ toHtml $
642642 case t of
643643 InlineMath -> "\\(" ++ str ++ "\\)"
644644 DisplayMath -> "\\[" ++ str ++ "\\]"