In W3C standards <ul> and <ol> cound only have zero or more <li> as their content. Nesting <ul> and <ol> directly is not correct (would fail validation by The Nu Html Checker).
The official @editorjs/nested-list handles html (NestedList.pasteHandler) in the W3C way, making current result not handleable by the official NestedList component.
Expected behaviour
Given nested list as below
Should be parsed into
<ul>
and<ol>
should be child of<li>
Actual behaviour
<ul>
and<ol>
were parsed as siblings of<li>
This could cause some problems:
<ul>
and<ol>
cound only have zero or more<li>
as their content. Nesting<ul>
and<ol>
directly is not correct (would fail validation by The Nu Html Checker).NestedList.pasteHandler
) in the W3C way, making current result not handleable by the official NestedList component.