git.iko.soy/typeable/pandoc
on master help sign in
WebTeX math - use 'vertical-align:middle' for better results.
e53e538John MacFarlane
src/Text/Pandoc/Writers/HTML.hs+2−1
@@ -567,7 +567,8 @@ inlineToHtml opts inline =
567 InlineMath -> thespan ! [theclass "math"] $ m
567 InlineMath -> thespan ! [theclass "math"] $ m
568 DisplayMath -> thediv ! [theclass "math"] $ m
568 DisplayMath -> thediv ! [theclass "math"] $ m
569 WebTeX url -> do
569 WebTeX url -> do
570+ let m = image ! [thestyle "vertical-align:middle",
570− let m = image ! [src (url ++ urlEncode str),
571+ src (url ++ urlEncode str),
571 alt str, title str]
572 alt str, title str]
572 return $ case t of
573 return $ case t of
573 InlineMath -> m
574 InlineMath -> m