Hi,
the document accepts this content expression: header? section+
- header, section are in “section” group and accept “block+” content
- article is in “block” and “section” group and accept “(block|section)+” content.
(where block are other block nodes, typically, paragraphs).
This is done to allow
<article>
<header>...
<article><header></header><section></section></article>
<article><header></header><section></section></article>
Now the problem:
<header><p>title</p></header>
<section><p>body</p></section>
is parsed as
<section><article><header><p>title</p></section></header></article></section>
<section><p>body</p></section>
And it is parsed correctly when document content expression is changed to:
- “header section+”
(using latest versions of prosemirror modules).