@@ -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 (texMathToInlines)
49import Text.HTML.TagSoup (parseTags, isTagText, Tag(..))
49import Text.HTML.TagSoup (parseTags, isTagText, Tag(..))
50import Network.URI (isURI)
50import Network.URI (isURI)
51import Data.Default
51import Data.Default
@@ -733,7 +733,7 @@ inlineToMarkdown opts (Math InlineMath str)
733 return $ "\\(" <> text str <> "\\)"
733 return $ "\\(" <> text str <> "\\)"
734 | isEnabled Ext_tex_math_double_backslash opts =
734 | isEnabled Ext_tex_math_double_backslash opts =
735 return $ "\\\\(" <> text str <> "\\\\)"
735 return $ "\\\\(" <> text str <> "\\\\)"
736− | otherwise = inlineListToMarkdown opts $ readTeXMath' InlineMath str
736+ | otherwise = inlineListToMarkdown opts $ texMathToInlines InlineMath str
737inlineToMarkdown opts (Math DisplayMath str)
737inlineToMarkdown opts (Math DisplayMath str)
738 | isEnabled Ext_tex_math_dollars opts =
738 | isEnabled Ext_tex_math_dollars opts =
739 return $ "$$" <> text str <> "$$"
739 return $ "$$" <> text str <> "$$"
@@ -742,7 +742,7 @@ inlineToMarkdown opts (Math DisplayMath str)
742 | isEnabled Ext_tex_math_double_backslash opts =
742 | isEnabled Ext_tex_math_double_backslash opts =
743 return $ "\\\\[" <> text str <> "\\\\]"
743 return $ "\\\\[" <> text str <> "\\\\]"
744 | otherwise = (\x -> cr <> x <> cr) `fmap`
744 | otherwise = (\x -> cr <> x <> cr) `fmap`
745− inlineListToMarkdown opts (readTeXMath' DisplayMath str)
745+ inlineListToMarkdown opts (texMathToInlines DisplayMath str)
746inlineToMarkdown opts (RawInline f str)
746inlineToMarkdown opts (RawInline f str)
747 | f == "html" || f == "markdown" ||
747 | f == "html" || f == "markdown" ||
748 (isEnabled Ext_raw_tex opts && (f == "latex" || f == "tex")) =
748 (isEnabled Ext_raw_tex opts && (f == "latex" || f == "tex")) =