aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2010-11-09 22:52:36 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2010-11-09 22:52:36 -0800
commit83e6c01e4d393f642231ed76e7a44804ec781f66 (patch)
tree2e614b0cd1c3ac93b28d499d61e9381d80d3efb4 /src/Text/Pandoc/Writers
parent07775b5f4fbe108dde4bd3729552c613b8f8d122 (diff)
parent21556e37f4596cd7020337f1a8f039364c47c04b (diff)
downloadpandoc-83e6c01e4d393f642231ed76e7a44804ec781f66.tar.gz
Merge branch 'master' into citeproc
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r--src/Text/Pandoc/Writers/HTML.hs16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs
index 7374cb343..b8da4bec0 100644
--- a/src/Text/Pandoc/Writers/HTML.hs
+++ b/src/Text/Pandoc/Writers/HTML.hs
@@ -503,18 +503,10 @@ inlineToHtml opts inline =
Left _ -> inlineListToHtml opts
(readTeXMath str) >>= return .
(thespan ! [theclass "math"])
- MathJax _ -> do
- let dt = if t == InlineMath
- then DisplayInline
- else DisplayBlock
- let conf = useShortEmptyTags (const False)
- defaultConfigPP
- case texMathToMathML dt str of
- Right r -> return $ primHtml $
- ppcElement conf r
- Left _ -> inlineListToHtml opts
- (readTeXMath str) >>= return .
- (thespan ! [theclass "math"])
+ MathJax _ -> return $ primHtml $
+ case t of
+ InlineMath -> "\\(" ++ str ++ "\\)"
+ DisplayMath -> "\\[" ++ str ++ "\\]"
PlainMath -> do
x <- inlineListToHtml opts (readTeXMath str)
let m = thespan ! [theclass "math"] $ x