If I go to the ProseMirror website and in the basic editor type a couple of headings, say
and then press enter when my cursor is at the end of Heading 3, a new paragraph line is generated, just as expected.
However, if I copy the whole thing, and paste it when my cursor is at the end of Heading 3 (without first pressing enter), an extra h3 line appears after paste, while the expected behaviour was for the cursor to either be at the end of Heading 3 without an extra line after that, or for the extra line to be of paragraph type.
This is shown in this screenshot:
I’ve tested it in both Chrome and Firefox, and the behaviour is the same.
So is this a bug in ProseMirror, expected behaviour, or something else @marjin?