-
Couldn't load subscription status.
- Fork 143
Open
Description
If you have content as displayed in the convertToRaw of the editorState.
7: {key: "5qoqm", text: "NumberedList ", type: "ordered-list-item", depth: 0, inlineStyleRanges: Array(0), …}
8: {key: "dn5n", text: "sub", type: "ordered-list-item", depth: 1, inlineStyleRanges: Array(0), …}
9: {key: "53r0c", text: "sub 2", type: "ordered-list-item", depth: 2, inlineStyleRanges: Array(0), …}
10: {key: "8kagr", text: "BulletList", type: "unordered-list-item", depth: 0, inlineStyleRanges: Array(0), …}
11: {key: "2u2p6", text: "sub", type: "unordered-list-item", depth: 1, inlineStyleRanges: Array(0), …}
12: {key: "cffgo", text: "sub 2", type: "unordered-list-item", depth: 2, inlineStyleRanges: Array(0), …}Which looks like
1. NumberedList
1. sub
1. sub 2
* BulletList
* sub
* sub 2
The html produced is
<ol>
<li>NumberedList</li>
</ol>
<ul>
<li>BulletList</li>
<ol>
<li>sub</li>
</ol>
<ul>
<li>sub</li>
<ol>
<li>sub 2</li>
</ol>
<ul>
<li>sub 2</li>
</ul>
</ul>
</ul>Which looks like
1. NumberedList
* BulletList
1. sub
* sub
1. sub 2
* sub 2
Metadata
Metadata
Assignees
Labels
No labels