Markdown Toolbox Logo Markdown Toolbox


Affiliate Link

Lenovo Ideapad Newest 14 inch FHD Laptop Computer - 8GB RAM 256GB NVMe SSD Intel Core i3-1115G4

The exact budget friendly laptop I got my dad. It has been working well for him.

How do I Add a Sublist in Markdown?

Friday, December 8, 2023

In Markdown, adding a sublist, also known as a nested list, is a simple process. Sublists allow you to create a hierarchy within your lists, which is useful for organizing information clearly.

To create a sublist, indent the items of the sublist by either using spaces or tabs under a parent list item.

For example:

-   Item 1
    -   Subitem 1.1
    -   Subitem 1.2
-   Item 2
    -   Subitem 2.1
    -   Subitem 2.2

This will render as:

You can create multiple levels of nested lists by adding more spaces or tabs for each level. Remember, the number of spaces or tabs used for each level should be consistent throughout your document.