XWIKI-11092: The diff displayer does not take into account the syntax

(cherry picked from commit 4bcb055cbe4a70f440f5c33d3fda2b80e78ac8a7)