Closed kapouer closed 1 year ago
Hi,
in the js to ts rewrite, setNodeMarkup changed from
setNodeMarkup
https://github.com/ProseMirror/prosemirror-transform/blob/88935a423fcf38613659002bac25ce7576b64bb0/src/structure.js#L147-L151 to https://github.com/ProseMirror/prosemirror-transform/blob/ee6ad1509d4ba8d099b48690048d2a52789ec0f3/src/structure.ts#L137-L142
This makes setNodeMarkup(pos, null, attrs) drop the node marks, whereas it used to not drop them. I believe this change is a mistake ?
setNodeMarkup(pos, null, attrs)
That was indeed unintentional. Attached patch should help.
Hi,
in the js to ts rewrite,
setNodeMarkup
changed fromhttps://github.com/ProseMirror/prosemirror-transform/blob/88935a423fcf38613659002bac25ce7576b64bb0/src/structure.js#L147-L151 to https://github.com/ProseMirror/prosemirror-transform/blob/ee6ad1509d4ba8d099b48690048d2a52789ec0f3/src/structure.ts#L137-L142
This makes
setNodeMarkup(pos, null, attrs)
drop the node marks, whereas it used to not drop them. I believe this change is a mistake ?