@@ -1184,13 +1184,13 @@ math = (return . B.displayMath <$> (mathDisplay >>= applyMacros'))
1185mathDisplay :: Parser [Char] ParserState String
1185mathDisplay :: Parser [Char] ParserState String
1186mathDisplay = try $ do
1186mathDisplay = try $ do
1187− guardEnabled Ext_tex_math
1187+ guardEnabled Ext_tex_math_dollars
1188 string "$$"
1188 string "$$"
1189 many1Till (noneOf "\n" <|> (newline >>~ notFollowedBy' blankline)) (try $ string "$$")
1189 many1Till (noneOf "\n" <|> (newline >>~ notFollowedBy' blankline)) (try $ string "$$")
1191mathInline :: Parser [Char] ParserState String
1191mathInline :: Parser [Char] ParserState String
1192mathInline = try $ do
1192mathInline = try $ do
1193− guardEnabled Ext_tex_math
1193+ guardEnabled Ext_tex_math_dollars
1194 char '$'
1194 char '$'
1195 notFollowedBy space
1195 notFollowedBy space
1196 words' <- sepBy1 mathWord (many1 (spaceChar <|> (newline >>~ notFollowedBy' blankline)))
1196 words' <- sepBy1 mathWord (many1 (spaceChar <|> (newline >>~ notFollowedBy' blankline)))