From the docs here:
(https://guides.github.com/features/mastering-markdown/),
you can create a nested list by indenting one or more list items below another item.
But I'm trying to create an ordered list with nested unordered lists.
I tried this code:
1. Ordered One
* Unordered First
* Unordered Second
* Unordered Third
1. Ordered Second
* Unordered One
* Unordered Two
* Unordered Three
and what I get is this:
How can I write this so Ordered Second
automatically gets number 2.
and the unordered nested lists are properly indented?
Thank you.
The issue you are experiencing is because your top-level list numbers in your example begin with a space in front. Eliminate that space and use three spaces for the sub-level indentation.
It isn't necessary to eliminate the space as it seems the key in GitHub's markdown is that there are three spaces differentiating the levels. So if you started with one space in front, the next level would have to have four spaces from the start of the line.
1. Ordered One
* Unordered First
* Unordered Second
* Unordered Third
1. Ordered Second
* Unordered One
* Unordered Two
* Unordered Three
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With