summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2012-07-11 16:54:13 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2012-07-11 16:54:13 -0700
commit6442e185b3bbdbe3d8207fce94de93fbd6979da1 (patch)
tree21763a5bc13dc999ca728a61fc75f362f5f29e2f /src/Text/Pandoc
parent9c4bb2fc129eba6b809c49581916b548cd367309 (diff)
HTML writer: Put mathjax in span with class "math".
Closes #562.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Writers/HTML.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs
index b8474ee3f..cafb6ca74 100644
--- a/src/Text/Pandoc/Writers/HTML.hs
+++ b/src/Text/Pandoc/Writers/HTML.hs
@@ -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 ++ "\\]"