Describe the bug
When there are multiple ordered lists, one after the other, the lists aren't rendered as expected.
To Reproduce
Using pod "WordPress-Aztec-iOS", "~> 1.0"
Call Aztec.EditorView.setHTML() with the following HTML code as String:
<ol><li>First item in list 1</li></ol>
<ol><li>First item in list 2</li></ol>
<ol><li>First item in list 3</li></ol>
Expected behavior
The number of each list item should be 1 as the following screenshot:
Smartphone:
OS: iOS14.4
Additional context
Also, the issue is reproducible using the example app if you create an ordered list, add one item after the other, and then, for the second item, you unselect the ordered list option and select it again. Doing this, Aztec generates the following HTML code:
<ol><li>First item in list 1</li></ol>
<ol>First item in list 2</ol>
<ol>First item in list 3</ol>
Describe the bug When there are multiple ordered lists, one after the other, the lists aren't rendered as expected.
To Reproduce
"WordPress-Aztec-iOS", "~> 1.0"
Aztec.EditorView.setHTML()
with the followingHTML
code asString
:Expected behavior The number of each list item should be
1
as the following screenshot:Smartphone:
Additional context Also, the issue is reproducible using the example app if you create an ordered list, add one item after the other, and then, for the second item, you unselect the ordered list option and select it again. Doing this, Aztec generates the following
HTML
code: