Currently, the content of RSS feeds such as
includes the classes
On the other hand, the other classes which are present on the wiki pages are removed from RSS feeds, making it difficult for the users to customize the styling of these diffs if they want to do so.
shouldn't be removed by function applyDiffStyle from
The styles should just be copied to the elements, without removing the classes (see $text = preg_replace( "/(<[^>]+)class=(['\"])$class\\2([^>]*>)/", "\\1style=\"$style\"\\3", $text ); in that code).
Besides, the regex used to detect the classes doesn't match the "diff" and "diffchange" classes. I'll open T36801: Function applyDiffStyle uses regexes which do not detect CSS classes appropriately specifically about that.