Question in setting nodeSpec with `marks:""`


I create Mention Node like tiptap.

I set Mention Schema like below ,the marks attribute is “”


however, when parseDom, it always append marks to the node.

I want to know how to make the node marks is []

I dont’t konw why set marks directly here


Allowed marks determine the marks allowed on children of a node. There’s no way to control the marks on a node directly (except by configuring the marks its parent allows).

I review marks,allowsMarkType,allowsMarks,allowedMarks. They seem to control this node, not child node. image

So ,I make some change in below PR, do you think is it right?

The new PR is precisely the same as the old one, and thus not correct for the same reason.