Question in setting nodeSpec with `marks:""`

Hi!

I create Mention Node like tiptap.

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

image

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

image

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.