diff --git a/MANUAL.txt b/MANUAL.txt index f69ed95f1..cc3f55a42 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -1669,7 +1669,7 @@ header when requesting a document from a URL: : Specify the method used to display TeX math. The following methods are possible (some take an optional URL, separated - from the method name by a colon). The default value is `plain`. + from the method name by a colon). The default value is `mathml`. `plain` diff --git a/src/Text/Pandoc/App/Opt.hs b/src/Text/Pandoc/App/Opt.hs index 7cf277b09..c7c644ce9 100644 --- a/src/Text/Pandoc/App/Opt.hs +++ b/src/Text/Pandoc/App/Opt.hs @@ -46,7 +46,7 @@ import Text.Pandoc.Filter (Filter (..)) import Text.Pandoc.Logging (Verbosity (WARNING), LogMessage(..)) import Text.Pandoc.Options (TopLevelDivision (TopLevelDefault), TrackChanges (AcceptChanges), - WrapOption (WrapAuto), MathMethod (PlainMath), + WrapOption (WrapAuto), MathMethod (MathML), ReferenceLocation (EndOfDocument), CaptionPosition (..), ObfuscationMethod (NoObfuscation), @@ -853,7 +853,7 @@ defaultOpts = Opt , optSyntaxDefinitions = [] , optSyntaxHighlighting = DefaultHighlightingString , optTopLevelDivision = TopLevelDefault - , optMathMethod = PlainMath + , optMathMethod = MathML , optAbbreviations = Nothing , optReferenceDoc = Nothing , optSplitLevel = 1 diff --git a/src/Text/Pandoc/Options.hs b/src/Text/Pandoc/Options.hs index a89d4d8e4..114f093dd 100644 --- a/src/Text/Pandoc/Options.hs +++ b/src/Text/Pandoc/Options.hs @@ -402,7 +402,7 @@ instance Default WriterOptions where , writerListOfFigures = False , writerListOfTables = False , writerIncremental = False - , writerMathMethod = PlainMath + , writerMathMethod = MathML , writerNumberSections = False , writerNumberOffset = [0,0,0,0,0,0] , writerSectionDivs = False diff --git a/test/command/10915.md b/test/command/10915.md index 36ba24499..69ecea25f 100644 --- a/test/command/10915.md +++ b/test/command/10915.md @@ -3,6 +3,7 @@ \newcommand{\a}{\ifmmode x \else y \fi} $\a$ and \a ^D -
x and y
++and y
``` diff --git a/test/command/8789.md b/test/command/8789.md index 291f5082e..c98a191a7 100644 --- a/test/command/8789.md +++ b/test/command/8789.md @@ -33,8 +33,10 @@