The following represents this typing:
1. this is parent
1. this is child 1
* this is parent
* this is child 1
which results into:
- this is parent
- this is child 1
- this is parent
- this is child 1
The markdown language was born to be meaningful on plain text, as well as emails, but it got this very specific ordered list case wrong at some point, when it requires an extra space compared to the regular unordered list one, defeating everyone intent into returning, and writing, a new ordered point in there!
That means that to have an ordered list, you need to brain-muscle an extra space:
1. this is parent
1. this is child 1
* this is parent
* this is child 1
Resulting into the desired layout:
- this is parent
- this is child 1
- this is parent
- this is child 1
Compare the list parsing code in the original CPAN Markdown module with its JS counterpart in markdown-it/list.js and you'll notice the following: