aboutsummaryrefslogtreecommitdiff
path: root/Main.hs
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2008-10-28 21:54:50 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2008-10-28 21:54:50 +0000
commit4f28d47b90d8dde0de21d5db966520959ead8684 (patch)
treea1843bd43bb38fd5465edad41c86e33efe785b2c /Main.hs
parent096413b2f35a8386eeecebcabbf04f0cde580857 (diff)
downloadpandoc-4f28d47b90d8dde0de21d5db966520959ead8684.tar.gz
Added --jsmath option.
- Added --jsmath option to Main.hs - Added JsMath to HTMLMathMethod in Text.Pandoc.Shared. - Handle math appropriately in HTML writer when JsMath selected. - Documented the option in README and man page. Resolves Issue #68. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1472 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'Main.hs')
-rw-r--r--Main.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Main.hs b/Main.hs
index 46c78e159..7853234e6 100644
--- a/Main.hs
+++ b/Main.hs
@@ -257,6 +257,12 @@ options =
"URL")
"" -- "Use mimetex for HTML math"
+ , Option "" ["jsmath"]
+ (OptArg
+ (\arg opt -> return opt { optHTMLMathMethod = JsMath arg})
+ "URL")
+ "" -- "Use jsMath for HTML math"
+
, Option "" ["gladtex"]
(NoArg
(\opt -> return opt { optHTMLMathMethod = GladTeX }))