summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2010-03-21 22:48:47 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2010-03-21 22:48:47 -0700
commit483a591eba6f250593fa7f26dd6491159bbb4ecb (patch)
treea901904017f99ead3ba8549ed40ac3d5d2f8b662 /src/Text/Pandoc/Writers
parent9cc54751ecd8046f66c583fb78f13638faede904 (diff)
HTML writer: fixed error in Math writer that caused infinite loop.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r--src/Text/Pandoc/Writers/HTML.hs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs
index 9bc75296d..d33dcff27 100644
--- a/src/Text/Pandoc/Writers/HTML.hs
+++ b/src/Text/Pandoc/Writers/HTML.hs
@@ -465,9 +465,11 @@ inlineToHtml opts inline =
case texMathToMathML dt str of
Right r -> return $ primHtml $
ppcElement conf r
- Left _ -> inlineToHtml opts
- (Math t str)
- PlainMath ->
+ Left _ -> inlineListToHtml opts
+ (readTeXMath str) >>=
+ return . (thespan !
+ [theclass "math"])
+ PlainMath ->
inlineListToHtml opts (readTeXMath str) >>=
return . (thespan ! [theclass "math"]) )
(TeX str) -> case writerHTMLMathMethod opts of