git.iko.soy/typeable/pandoc
on master help sign in
HTML writer: fixed error in Math writer that caused infinite loop.
commit483a591eba6f250593fa7f26dd6491159bbb4ecb authorJohn MacFarlane <jgm@berkeley.edu> dateSun 21 Mar 2010, 22:48 (17 years ago) parent9cc5475
1 file changed+5−3
src/Text/Pandoc/Writers/HTML.hs+5−3
src/Text/Pandoc/Writers/HTML.hs+5−3
@@ -465,9 +465,11 @@ inlineToHtml opts inline =
465465 case texMathToMathML dt str of
466466 Right r -> return $ primHtml $
467467 ppcElement conf r
468− Left _ -> inlineToHtml opts
469− (Math t str)
470− PlainMath ->
468+ Left _ -> inlineListToHtml opts
469+ (readTeXMath str) >>=
470+ return . (thespan !
471+ [theclass "math"])
472+ PlainMath ->
471473 inlineListToHtml opts (readTeXMath str) >>=
472474 return . (thespan ! [theclass "math"]) )
473475 (TeX str) -> case writerHTMLMathMethod opts of