y-prosemirror icon indicating copy to clipboard operation
y-prosemirror copied to clipboard

fix: compare mark names in equalYTextPText

Open aonnikov opened this issue 2 months ago • 1 comments

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.

aonnikov avatar Oct 15 '25 07:10 aonnikov

Hey @dmonad , could you please look into this PR when you have a chance?

aonnikov avatar Oct 23 '25 04:10 aonnikov