aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
diff options
context:
space:
mode:
authorPhilip Pesca <ppesca@ucsd.edu>2019-07-24 10:10:36 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-07-24 10:10:36 -0700
commit01a52e2300779ed411f9db3bc039656bac1d4699 (patch)
treeb483c07dc34e56de4bc2261343c204469ce0cad0 /src/Text/Pandoc/Writers
parent060141bf2cb3d09d5d34ba20f5ee35ab9d223c63 (diff)
downloadpandoc-01a52e2300779ed411f9db3bc039656bac1d4699.tar.gz
HTML writer: ensure TeX formulas are rendered correctly (#5658)
The web service passed in to `--webtex` may render formulas using inline or display style by default. Prefixing formulas with the appropriate command ensures they are rendered correctly. This is a followup to the discussion in #5656.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r--src/Text/Pandoc/Writers/HTML.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs
index 84fd404b1..5484ebba9 100644
--- a/src/Text/Pandoc/Writers/HTML.hs
+++ b/src/Text/Pandoc/Writers/HTML.hs
@@ -1064,7 +1064,7 @@ inlineToHtml opts inline = do
let imtag = if html5 then H5.img else H.img
let s = case t of
InlineMath -> "\\textstyle "
- DisplayMath -> ""
+ DisplayMath -> "\\displaystyle "
let m = imtag ! A.style "vertical-align:middle"
! A.src (toValue $ url ++ urlEncode (s ++ str))
! A.alt (toValue str)