@kfirba or someone else, to help me understand the root problem, why do you want to get rid of p inside a list ? There are two cases where this makes sense:
- You want to get rid
pinsideliwhen exporting editor’s doc to an HTML string. This is helpful for copy, pasting, dragging, exporting etc. - You want to get rid of
pinsideliin the actual DOM tree of your Editor. This comes with some serious drawbacks like not able to use the existing Prosemirror List utilities as they expect a paragraph node inside ali. Dealing with lists is an arcane task, and I would strongly recommend using the prior art whenever possible.
As you can see the above two seem related but knowing which one you really want can help determine the solution. Which one is it?