@@ -45,7 +45,7 @@ import Text.Pandoc.Pretty
45import Control.Monad.State
45import Control.Monad.State
46import qualified Data.Set as Set
46import qualified Data.Set as Set
47import Text.Pandoc.Writers.HTML (writeHtmlString)
47import Text.Pandoc.Writers.HTML (writeHtmlString)
48−import Text.Pandoc.Readers.TeXMath (readTeXMath)
48+import Text.Pandoc.Readers.TeXMath (readTeXMath')
49import Text.HTML.TagSoup (renderTags, parseTags, isTagText, Tag(..))
49import Text.HTML.TagSoup (renderTags, parseTags, isTagText, Tag(..))
50import Network.URI (isURI)
50import Network.URI (isURI)
51import Data.Default
51import Data.Default
@@ -697,7 +697,7 @@ inlineToMarkdown opts (Math InlineMath str)
697 return $ "\\(" <> text str <> "\\)"
697 return $ "\\(" <> text str <> "\\)"
698 | isEnabled Ext_tex_math_double_backslash opts =
698 | isEnabled Ext_tex_math_double_backslash opts =
699 return $ "\\\\(" <> text str <> "\\\\)"
699 return $ "\\\\(" <> text str <> "\\\\)"
700− | otherwise = inlineListToMarkdown opts $ readTeXMath str
700+ | otherwise = inlineListToMarkdown opts $ readTeXMath' InlineMath str
701inlineToMarkdown opts (Math DisplayMath str)
701inlineToMarkdown opts (Math DisplayMath str)
702 | isEnabled Ext_tex_math_dollars opts =
702 | isEnabled Ext_tex_math_dollars opts =
703 return $ "$$" <> text str <> "$$"
703 return $ "$$" <> text str <> "$$"
@@ -706,7 +706,7 @@ inlineToMarkdown opts (Math DisplayMath str)
706 | isEnabled Ext_tex_math_double_backslash opts =
706 | isEnabled Ext_tex_math_double_backslash opts =
707 return $ "\\\\[" <> text str <> "\\\\]"
707 return $ "\\\\[" <> text str <> "\\\\]"
708 | otherwise = (\x -> cr <> x <> cr) `fmap`
708 | otherwise = (\x -> cr <> x <> cr) `fmap`
709− inlineListToMarkdown opts (readTeXMath str)
709+ inlineListToMarkdown opts (readTeXMath' DisplayMath str)
710inlineToMarkdown opts (RawInline f str)
710inlineToMarkdown opts (RawInline f str)
711 | f == "html" || f == "markdown" ||
711 | f == "html" || f == "markdown" ||
712 (isEnabled Ext_raw_tex opts && (f == "latex" || f == "tex")) =
712 (isEnabled Ext_raw_tex opts && (f == "latex" || f == "tex")) =