aboutsummaryrefslogtreecommitdiff
path: root/Text/Pandoc
diff options
context:
space:
mode:
Diffstat (limited to 'Text/Pandoc')
-rw-r--r--Text/Pandoc/Writers/HTML.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Text/Pandoc/Writers/HTML.hs b/Text/Pandoc/Writers/HTML.hs
index 70814eb15..dfc8f219d 100644
--- a/Text/Pandoc/Writers/HTML.hs
+++ b/Text/Pandoc/Writers/HTML.hs
@@ -411,7 +411,8 @@ inlineToHtml opts inline =
GladTeX ->
return $ tag "eq" << str
PlainMath ->
- inlineListToHtml opts (readTeXMath str))
+ inlineListToHtml opts (readTeXMath str) >>=
+ return . (thespan ! [theclass "math"]))
(TeX str) -> return noHtml
(HtmlInline str) -> return $ primHtml str
(Link [Code str] (src,tit)) | "mailto:" `isPrefixOf` src ->