The GitHub markdown code:
1. First item
* subitem
1. Second item
Generates a big space between the First
, Second
and the subitem
:
How to make the subitem
close to the first item, instead of exactly on the middle of them?
This is a Photoshop I did to illustrate the correct output:
Related questions:
3
Answers
You cannot do this going from a primary to secondary item. It is possible from a secondary to tertiary list, however. This is due to GitHub’s styling of the markdown, not an inherent issue with the markdown itself.
See this document for details on what is possible regarding different layout styles.
You need to indent the sublist with at least 4 spaces:
An admittably “hacky” but still working solution: