I found that 'insert' property is required in diff(). But there is no 'insert' property in the delta object which returned by calling formatLine() method and only 'retain' property exists.
Hey @cyrilzhao can you please provide a test or example deltas. It sounds like things are working as expected by the methods may be misused or misunderstood.
I found that 'insert' property is required in diff(). But there is no 'insert' property in the delta object which returned by calling formatLine() method and only 'retain' property exists.