git.iko.soy/typeable/pandoc
on master help sign in
HTML writer: fixed error in Math writer that caused infinite loop.
483a591John MacFarlane
src/Text/Pandoc/Writers/HTML.hs+5−3
@@ -465,9 +465,11 @@ inlineToHtml opts inline =
465 case texMathToMathML dt str of
465 case texMathToMathML dt str of
466 Right r -> return $ primHtml $
466 Right r -> return $ primHtml $
467 ppcElement conf r
467 ppcElement conf r
468− Left _ -> inlineToHtml opts
468+ Left _ -> inlineListToHtml opts
469− (Math t str)
469+ (readTeXMath str) >>=
470+ return . (thespan !
471+ [theclass "math"])
470− PlainMath ->
472+ PlainMath ->
471 inlineListToHtml opts (readTeXMath str) >>=
473 inlineListToHtml opts (readTeXMath str) >>=
472 return . (thespan ! [theclass "math"]) )
474 return . (thespan ! [theclass "math"]) )
473 (TeX str) -> case writerHTMLMathMethod opts of
475 (TeX str) -> case writerHTMLMathMethod opts of