diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2011-12-04 16:07:04 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2011-12-04 16:07:04 -0800 |
commit | e53e53852407c78b17967dacca7696fdc755c7ec (patch) | |
tree | 09a147d88de3ec34a490b8d54dff1a5e5bf7ecce /src | |
parent | 42eb96a8b3a7af0e1c25c1e59d9ed3417cdc235c (diff) | |
download | pandoc-e53e53852407c78b17967dacca7696fdc755c7ec.tar.gz |
WebTeX math - use 'vertical-align:middle' for better results.
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/Writers/HTML.hs | 3 |
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 |