-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible diff algorithm improvement #46
Comments
@maliayas Thanks for opening this issue! This is actually an undesired side-effect of one of the newer features we implemented - isolated tag diffing. I had not actually thought about this until now, so I'm very glad you opened this issue. Basically, the isolated tag diffing is comparing the italic tags So, it will take a little of work, but is certainly possible. This will be one of the higher priorities to tackle. |
I see. Great explanation. If fixing this, will break other stuff, don't worry about this issue. I understand that perfecting a diff library may be quite complex. Btw. demo tool is awesome. |
Looping back around here - our highest priority of this library was the accuracy of the diff, so unfortunately performance took a back seat to it. However, we do like to leave that decision up to the end users when we can - the config option I'll see if I can update the documentation to highlight the reasoning behind choosing this as the default option this weekend. Closing this issue. |
I'm using the "Override Demo 5" in the demo and I get this result:
Another diff app I try gives this result for the same HTML:
Note how it handles the first paragraph. I don't know how complex it is to implement but it's a better algorithm for this example HTML. Thanks in advance.
The text was updated successfully, but these errors were encountered: