207

I know I can use asterisks to do something like this:

  • list item1
  • list item2

but I was expecting something like ** to indent it one further. Is it possible?

3 Answers 3

316

Sub Lists in GFM(github-flavored-markdown) are done the ways represented below.

- Item 1
- Item 2
- Item 3
  - Sub Item 1
  - Sub Item 2
   
#^ two spaces

OR

* Item 1
* Item 2
* Item 3
  * Sub Item A
  * Sub Item B

Refer to this Cheatsheet

6
  • 32
    Both of these worked for me, but I needed four spaces to indent the 2nd level bullets Commented Sep 4, 2020 at 0:00
  • 5
    can this be done for numbered lists instead of bullets?
    – cryanbhu
    Commented Nov 26, 2020 at 4:35
  • 8
    2-5 spaces worked for me, but you have to add a space and at least a character after the bullet point, like so: " * word"
    – rmutalik
    Commented Oct 15, 2021 at 5:48
  • 3
    Also works for numbered lists
    – abc123
    Commented Oct 20, 2021 at 14:23
  • Also work for check lists Commented Aug 5, 2022 at 15:54
0

Perhaps the behaviour changed since this question was originally asked. I'm currently able to indent in github (i.e. create a nested list) by following one type of list character like '*' by another '-'.

Ex:

* First point
- Nested point

Which results in:

● First point
  ○ Nested point
-1

Have a look at the excellent README.md cheatsheet for all formatting queries.

As answered above for a bullet point indented list you’ll do:

- Item 1
- Item 2
- Item 3
  - Sub Item 1
  - Sub Item 2

using a tab

and for a numbered indented list you’ll do

1. Number 1
    1. NUmber 1.1
    2. Number 1.2
2. Number 2

also using a tab

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.