EDDYMENS

Published 2 years ago

Markdown Nested Lists

In a previous article [→] we looked at how to create a list in Markdown.

In this article, we will look at how to create a list within a list. Something like this:

  1. Wake up
    • Check the time first
    • If it's past 7 then wake up
  2. Clean up
    • This includes brushing
    • Taking a shower
  3. Eat
    • Have cereals for breakfast

In the above example, each of the three items has sub-items as well. To achieve this you will need to indent the sub list under the main list.

Here is what it looks like in Markdown.

01: 1. Wake up 02: - Check the time first 03: - If it's past 7 then wake up 04: 2. Clean up 05: - This includes brushing 06: - Taking a shower 07: 3. Eat 08: - Have cereals for breakfast

Here is another article for you 😊 "How to create a table in Markdown"