@@ -1184,13 +1184,13 @@ math = (return . B.displayMath <$> (mathDisplay >>= applyMacros'))
11841184
11851185mathDisplay :: Parser [Char] ParserState String
11861186mathDisplay = try $ do
1187− guardEnabled Ext_tex_math
1187+ guardEnabled Ext_tex_math_dollars
11881188 string "$$"
11891189 many1Till (noneOf "\n" <|> (newline >>~ notFollowedBy' blankline)) (try $ string "$$")
11901190
11911191mathInline :: Parser [Char] ParserState String
11921192mathInline = try $ do
1193− guardEnabled Ext_tex_math
1193+ guardEnabled Ext_tex_math_dollars
11941194 char '$'
11951195 notFollowedBy space
11961196 words' <- sepBy1 mathWord (many1 (spaceChar <|> (newline >>~ notFollowedBy' blankline)))