Thanks for the explanation of the MD flag and the detailed examples Matt :)
It blows my mind that the MD tag doesn't include a way to encode insertions... but I can't say it surprises me :P
Your parser, if his data contains the MD flag, is the way to go I think!