-
Notifications
You must be signed in to change notification settings - Fork 24
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
Changesets are ignoring changes in marks #4
Comments
This is by design, currently, since modified ranges don't fit that well into the main use case for this, drawing insertions/deletions, and tracking them would further complicate an already tricky codebase. Also, |
I understand that it would make this package more complicated, but that is one more reason to have it in a standard/maintained package. :-) Because it is tricky for somebody who is not really an expert in ProseMirror to really come up with this. If you really want to display full diff to the users, then you need it, no? I mean, marks can sometimes be very meaningful.
Why would we need I do not think we have to care about marks in the deleted content. But marks in preserved/existing content and diff on them would be useful. |
I'm not sure whether his is related but diffs are also not show between changes in block type. So when deleting the content between the text below
Is this due to:
|
Yes, that's also by design too. (This is a rather narrow library designed to fit a specific use case, and I'm not prepared to increase its scope. If someone who has more time for it were to fork it, that'd be great, of course!) |
Makes sense - thanks for the quick reply 👍 (and sorry for hijacking this issue) |
Maybe in addition to
inserted
andremoved
there should also be something likemodified
for those slices which had marks modified?The text was updated successfully, but these errors were encountered: