diff options
author | John MacFarlane <jgm@berkeley.edu> | 2012-07-11 16:54:13 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2012-07-11 16:54:13 -0700 |
commit | 6442e185b3bbdbe3d8207fce94de93fbd6979da1 (patch) | |
tree | 21763a5bc13dc999ca728a61fc75f362f5f29e2f /src/Text/Pandoc/Writers/HTML.hs | |
parent | 9c4bb2fc129eba6b809c49581916b548cd367309 (diff) | |
download | pandoc-6442e185b3bbdbe3d8207fce94de93fbd6979da1.tar.gz |
HTML writer: Put mathjax in span with class "math".
Closes #562.
Diffstat (limited to 'src/Text/Pandoc/Writers/HTML.hs')
-rw-r--r-- | src/Text/Pandoc/Writers/HTML.hs | 2 |
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 ++ "\\]" |