According to the HTML specification, a
block element can contain either
block elements or
Although ProseMirror does not support mixing of the two. But, is there a way to make a node that allows to include only inline nodes as well as block nodes (The two do NOT mix with each other) ?
<ul> <li>plaintext</li> </ul>
<ul> <li><p>plaintext</p></li> </ul>
Both of them should be valid.
I’ve tried to define a node schema’s content as
(inline* | block*),. However, it thrown an error:
SyntaxError: Mixing inline and block content.