And as an end user… I’m using system prompt for that (OpenAI).
When math is in own line or chapter, change \( and \) → at own lines, before and after, $$ is quite reliable.
But when same should do inline with single $… that fails almost every time.
If that could happen automatic… even better.