HTML writer: Put mathjax in span with class "math".

Closes #562.
This commit is contained in:
John MacFarlane 2012-07-11 16:54:13 -07:00
parent 9c4bb2fc12
commit 6442e185b3

View file

@ -638,7 +638,7 @@ inlineToHtml opts inline =
Left _ -> inlineListToHtml opts
(readTeXMath str) >>= return .
(H.span ! A.class_ "math")
MathJax _ -> return $ toHtml $
MathJax _ -> return $ H.span ! A.class_ "math" $ toHtml $
case t of
InlineMath -> "\\(" ++ str ++ "\\)"
DisplayMath -> "\\[" ++ str ++ "\\]"