aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2011-12-04 16:07:04 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2011-12-04 16:07:04 -0800
commite53e53852407c78b17967dacca7696fdc755c7ec (patch)
tree09a147d88de3ec34a490b8d54dff1a5e5bf7ecce /src/Text/Pandoc
parent42eb96a8b3a7af0e1c25c1e59d9ed3417cdc235c (diff)
downloadpandoc-e53e53852407c78b17967dacca7696fdc755c7ec.tar.gz
WebTeX math - use 'vertical-align:middle' for better results.
Diffstat (limited to 'src/Text/Pandoc')
-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