@@ -1062,8 +1062,11 @@ inlineToHtml opts inline = do
10621062 case writerHTMLMathMethod opts of
10631063 WebTeX url -> do
10641064 let imtag = if html5 then H5.img else H.img
1065+ let s = case t of
1066+ InlineMath -> "\\textstyle "
1067+ DisplayMath -> ""
10651068 let m = imtag ! A.style "vertical-align:middle"
1066− ! A.src (toValue $ url ++ urlEncode str)
1069+ ! A.src (toValue $ url ++ urlEncode (s ++ str))
10671070 ! A.alt (toValue str)
10681071 ! A.title (toValue str)
10691072 let brtag = if html5 then H5.br else H.br