From 483a591eba6f250593fa7f26dd6491159bbb4ecb Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 21 Mar 2010 22:48:47 -0700 Subject: HTML writer: fixed error in Math writer that caused infinite loop. --- src/Text/Pandoc/Writers/HTML.hs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/Text/Pandoc/Writers') 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 -- cgit v1.2.3