- Get the indexes of the change - Detect the changed clause - Correct generation of the MD with changes marks