Removing the default paragraph (p) inside a list item (li)

@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:

  1. You want to get rid p inside li when exporting editor’s doc to an HTML string. This is helpful for copy, pasting, dragging, exporting etc.
  2. You want to get rid of p inside li in 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 a li. 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?