In diffs, we want to see the effect of an edit to both the rendered form of a formula as well as the TeX source. Otherwise, edits that do not obviously affect the rendered formula would be invisible in the diff.
We already support this kind of thing for GeoCoordinates, Quantities, and other complex types. All it takes is a specialized formatter for the FORMAT_HTML_DIFF output format. The formatter for the TeX source should output an html-escaped version of the string value, perhaps in a monospace font using <tt> or something.