aboutsummaryrefslogtreecommitdiff
path: root/Text/Pandoc/Writers
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2007-12-02 02:50:41 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2007-12-02 02:50:41 +0000
commitd411b104389bf4a458ebdd8f23998316b90b0aa3 (patch)
tree1bd330c4563cd1645bc5e0e876694e48ca9b4fea /Text/Pandoc/Writers
parentd1832da9e104d61aa6ee0161aefeabf4aef9bbd2 (diff)
downloadpandoc-d411b104389bf4a458ebdd8f23998316b90b0aa3.tar.gz
Put math in HTML inside <span class="math">.
This way it can be distinguished from the surrounding text, e.g. put in a different font. Updated README accordingly. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1130 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'Text/Pandoc/Writers')
-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 ->