From e53e53852407c78b17967dacca7696fdc755c7ec Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 4 Dec 2011 16:07:04 -0800 Subject: WebTeX math - use 'vertical-align:middle' for better results. --- src/Text/Pandoc/Writers/HTML.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs index 00fefbf05..75ad81d42 100644 --- a/src/Text/Pandoc/Writers/HTML.hs +++ b/src/Text/Pandoc/Writers/HTML.hs @@ -567,7 +567,8 @@ inlineToHtml opts inline = InlineMath -> thespan ! [theclass "math"] $ m DisplayMath -> thediv ! [theclass "math"] $ m WebTeX url -> do - let m = image ! [src (url ++ urlEncode str), + let m = image ! [thestyle "vertical-align:middle", + src (url ++ urlEncode str), alt str, title str] return $ case t of InlineMath -> m -- cgit v1.2.3