@@ -466,8 +466,9 @@ inlineToMarkdown _ (Math InlineMath str) =
466 return $ "$" <> text str <> "$"
466 return $ "$" <> text str <> "$"
467inlineToMarkdown _ (Math DisplayMath str) =
467inlineToMarkdown _ (Math DisplayMath str) =
468 return $ "$$" <> text str <> "$$"
468 return $ "$$" <> text str <> "$$"
469−inlineToMarkdown _ (RawInline f str)
469+inlineToMarkdown opts (RawInline f str)
470− | f == "html" || f == "latex" || f == "tex" || f == "markdown" =
470+ | f == "html" || f == "markdown" ||
471+ (isEnabled Ext_raw_tex opts && (f == "latex" || f == "tex")) =
471 return $ text str
472 return $ text str
472inlineToMarkdown _ (RawInline _ _) = return empty
473inlineToMarkdown _ (RawInline _ _) = return empty
473inlineToMarkdown opts (LineBreak)
474inlineToMarkdown opts (LineBreak)