@@ -31,7 +31,7 @@ writers.
3131module Main where
3232import Text.Pandoc
3333import Text.Pandoc.UTF8
34−import Text.Pandoc.Shared ( joinWithSep )
34+import Text.Pandoc.Shared ( joinWithSep, HTMLMathMethod (..) )
3535import Text.Regex ( mkRegex, matchRegex )
3636import System.Environment ( getArgs, getProgName, getEnvironment )
3737import System.Exit ( exitWith, ExitCode (..) )
@@ -406,7 +406,7 @@ main = do
406406 , optNumberSections = numberSections
407407 , optIncremental = incremental
408408 , optSmart = smart
409− , optUseASCIIMathML = useAsciiMathML
409+ , optUseASCIIMathML = useASCIIMathML
410410 , optASCIIMathMLURL = asciiMathMLURL
411411 , optDumpArgs = dumpArgs
412412 , optIgnoreArgs = ignoreArgs
@@ -450,6 +450,10 @@ main = do
450450 Just cols -> read cols
451451 Nothing -> stateColumns defaultParserState
452452
453+ let mathMethod = if useASCIIMathML
454+ then ASCIIMathML asciiMathMLURL
455+ else PlainMath
456+
453457 let tabFilter _ [] = ""
454458 tabFilter _ ('\n':xs) = '\n':(tabFilter tabStop xs)
455459 -- remove DOS line endings
@@ -487,8 +491,7 @@ main = do
487491 writerTableOfContents = toc &&
488492 (not strict) &&
489493 writerName/="s5",
490− writerUseASCIIMathML = useAsciiMathML,
491− writerASCIIMathMLURL = asciiMathMLURL,
494+ writerHTMLMathMethod = mathMethod,
492495 writerS5 = (writerName=="s5"),
493496 writerIgnoreNotes = False,
494497 writerIncremental = incremental,