I think the indentation rules for items “after” a list item are too difficult. If the “list marker” is N characters wide the next item must be indented N as well. Which leads to the following:
9) Lorem ipsum dolor sit amet,
- 3 spaces (previous item is "indented" 3)
10) Lorem ipsum dolor sit amet,
- 4 spaces (previous item is "indented" 4)
11) Lorem ipsum dolor sit amet,
- 3 spaces (previous item is "indented" 4)
results in
<ol start="9">
<li>
<p>Lorem ipsum dolor sit amet,</p>
<ul>
<li>3 spaces (previous item is "indented" 3)</li>
</ul>
</li>
<li>
<p>Lorem ipsum dolor sit amet,</p>
<ul>
<li>4 spaces (previous item is "indented" 4)</li>
</ul>
</li>
<li>
<p>Lorem ipsum dolor sit amet,</p></li>
</ol>
<ul>
<li>3 spaces (previous item is "indented" 4)</li>
</ul>
In a long list I have to indent sub lists (sub paragraphs) differently for item no. 9 as compared to item no. 10 (in ordered lists)
Why did you chose this solution instead of a fixed required indentation?