summaryrefslogtreecommitdiff
path: root/src/pandoc.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2010-10-26 21:06:51 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2010-10-26 21:07:51 -0700
commit9cf27c92c136cce4785744542eaf962c05f1052c (patch)
tree4707badbb043be45abaa39c8636ffb1d28239bd7 /src/pandoc.hs
parent905d194db5f083ba49dfd5360d23aeba5b9b41ae (diff)
Added support for MathJax for displaying math in HTML.
Added --mathjax option. Added MathJax to HTMLMathMethod. Supported MathJax in HTML writer. Resolves Issue #259.
Diffstat (limited to 'src/pandoc.hs')
-rw-r--r--src/pandoc.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pandoc.hs b/src/pandoc.hs
index 3adb9746d..082e337f5 100644
--- a/src/pandoc.hs
+++ b/src/pandoc.hs
@@ -309,6 +309,12 @@ options =
"URL")
"" -- "Use jsMath for HTML math"
+ , Option "" ["mathjax"]
+ (ReqArg
+ (\arg opt -> return opt { optHTMLMathMethod = MathJax arg})
+ "URL")
+ "" -- "Use MathJax for HTML math"
+
, Option "" ["gladtex"]
(NoArg
(\opt -> return opt { optHTMLMathMethod = GladTeX }))