git.iko.soy/typeable/pandoc
on master help sign in
WebTeX math - use 'vertical-align:middle' for better results.
commite53e53852407c78b17967dacca7696fdc755c7ec authorJohn MacFarlane <fiddlosopher@gmail.com> dateSun 4 Dec 2011, 16:07 (15 years ago) parent42eb96a
1 file changed+2−1
src/Text/Pandoc/Writers/HTML.hs+2−1
src/Text/Pandoc/Writers/HTML.hs+2−1
@@ -567,7 +567,8 @@ inlineToHtml opts inline =
567567 InlineMath -> thespan ! [theclass "math"] $ m
568568 DisplayMath -> thediv ! [theclass "math"] $ m
569569 WebTeX url -> do
570− let m = image ! [src (url ++ urlEncode str),
570+ let m = image ! [thestyle "vertical-align:middle",
571+ src (url ++ urlEncode str),
571572 alt str, title str]
572573 return $ case t of
573574 InlineMath -> m