It was pointed out earlier today on chat, by Martin Sleziak, that the scope of MathJax new commands changed at some point in the (recent?) past: it was switched for Math SE in January of last year and on this site at some point in the intervening months.
The short of it is that answers now start and end with
<span class="d-none">$\begingroup$</span>
and
<span class="d-none">$\endgroup$</span>
markup, which scopes any \newcommand
and \renewcommand
instances to only that post and not the entire thread.
This is Good Thing, and indeed something we've complained about before. However, it does also mean that answers that used commands defined in the question may now be broken, and it'd be good to have a thorough search for them and implement any fixes that may be required.
As such, I'm using a SEDE query, Answered questions with LaTeX \newcommand's , which lists all the relevant questions, in case anyone wants to help me look through them.
\newcommand
defines in the question and then searches the answers for it, and then (over time, like 1 or 2 per day) automatically edits the answer(s) as needed. Along the lines of the broken-image-link fixing script. Let me see if I can find somebody who has something like that up and running already. $\endgroup$