Markdown Toolbox Logo Markdown Toolbox
Home
Blog

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.