Describe the bug
sync-plugin does not detect changes when mark changed. Based on what I see in code, I assume that the problem is in equalYTextPText function, it compares attributes, but does not actually check mark types.
To Reproduce
- Type some text and mark it with
bold
- Change mark to
code. I'm using tiptap, so I run toggleCode command that unsets bold mark and sets code mark.
- The change won't be applied to the ydoc/not sent to the server
Expected behavior
The plugin is to able to recognize mark change.