Unable to handle combination of ordered and unordered list
Opened this issue · 0 comments
AdarshPawar29 commented
The markdown I am writing in my editor:
1. Hello there!
- hi
- hi
2. Hello there!
- hi
Markdown I get after converting markdownToDraft:
1. Hello there!
- hi
- hi
1. Hello there!
- hi
rawObject:
"entityMap": {},
"blocks": [
{
"depth": 0,
"type": "unstyled",
"text": "`1. Hello there!",
"entityRanges": [],
"inlineStyleRanges": []
},
{
"depth": 0,
"type": "unordered-list-item",
"text": "hi",
"inlineStyleRanges": [],
"entityRanges": []
},
{
"depth": 0,
"type": "unordered-list-item",
"text": "hi",
"inlineStyleRanges": [],
"entityRanges": []
},
{
"depth": 0,
"type": "ordered-list-item",
"text": "Hello there!",
"inlineStyleRanges": [],
"entityRanges": []
},
{
"depth": 0,
"type": "unordered-list-item",
"text": "hi`",
"inlineStyleRanges": [],
"entityRanges": []
}
]
}```