aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/HTML.hs3
1 files changed, 2 insertions, 1 deletions
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