Wrong paste behaviour

Hi guys!

I have a schema where block nodes can not have another block nodes but just paragraphs. In a case when I copy a block element with a block inside it from an another editor, for example, the main prosemirror page, something like the list block node inside the list item. The default prosemirror paste behaviour removes nested lists and inserts just the top level. I find it strange and I’d like to leave at least plain text instead of nested block nodes in a case if my schema does not support it.

I copy:

  • 123
    • 456

I get:

  • 123

Could you suggest how I can implement it?