Thanks!
That does work (but only if I restart the numbering from 1. again for any indentations)
and so on ....
/* For styling the rendered Markdown */
li ol {
list-style-type: upper-roman;
}
li li ol {
list-style-type: lower-roman;
}
li li li ol {
list-style-type: upper-latin;
}
li li li li ol {
list-style-type: lower-latin;
}
Unless I have misunderstood what you mean, that is supposed to happen. A ordered list which is within a list is a new list and so starts from one. It enables you to have "legal-like" numbering such as: 3(a)(i)
Or, if you mean you have to physically type "1" to start a sub-list this is because with Markdown the item number has no real meaning apart from indicating what follows is part of a numbered list. That said, the number used for the very first list itemdoes have significance as the renderer will count up from that number.
It is when the Markdown is rendered that auto-numbering is applied.
ol { counter-reset: item }
li { display: block }
li:before { content: counters(item, ".") " "; counter-increment: item }
For example, using that in userstyle.css with:
1. first level 1 item
1. first level 2 item
1. second level 2 item
1. second level 1 item
1. first level 2 item
1. second level 2 item
1. first level 3 item
1. second level 3 item