Greetings, if you create a code block in a ticket and edit the code part, then you will get a comment about the description changes with some part of the text that should be in the code block outside the code block itself.
Proper fix: include all the necessary text in the code block.
Workaround: hide the diff comment in the tracker, let the user to get the email and add a "last edited" note in the ticket description. This should be like how the wiki works right now.
In a new ticket comment, you can read "Description has changed:" a new line and then "Diff:", then these lines in a code block:
--- old
+++ new
@@ -1,5 +1,5 @@
c
and the following two lines out of the code block:
-d
+e
"-d" and "+e" should be in the code block, too.
I would like to highlight that if instead of a, b,c,d and e you put markdown code, then the result can be huge text or missing tags, you should test it to understand it better