Closed TNick closed 3 years ago
(removed)
oh sorry, didn't see that wrong json. have to look at this later.
Ok, this is because we define the content for list items as paragraph block*
. ProseMirror suggests that.
ProseMirror expects a list structure like this:
<p>Paragraph 1 </p>
<ul>
<li>list item 1</li>
<li>list item 2
<ul>
<li>nested list item 1</li>
<li>nested list item 2</li>
</ul>
</li>
</ul>
You can overwrite the content option for list items with block*
which will fix the parsing of your HTML but after that, some commands like lifting and sinking lists doesn’t work as expected.
Since this is the suggested way of ProseMirror I’ll mark that as wontfix for now.
Description Parsing nested html lists results in wrong content.
Steps to reproduce the bug Steps to reproduce the behavior:
CodeSandbox I created a CodeSandbox to help you debug the issue:
Expected behavior Nested lists should look like the input data.
Environment?
Additional context
gets converted into this: