Fix backslashes before rendering math