y-prosemirror
y-prosemirror copied to clipboard
fix: compare mark names in equalYTextPText
Closes #197
When comparing text nodes equalYTextPText used to compare number of marks and their attributes, but not names. This did not work properly for marks without attributes. When changed one mark without attributes to mark with different type without attributes, the function result was negative.
Accompanied the fix with unit test that demonstrates the issue.
Hey @dmonad , could you please look into this PR when you have a chance?