Skip to content
All referenceLists

Markdown Nested List

How to create nested and indented lists in markdown. Sub-bullets, mixed ordered and unordered lists, and indentation rules.

What is markdown nested list?

Nested lists are created by indenting list items with 2–4 spaces (or a tab). You can nest unordered lists inside ordered lists and vice versa. The level of indentation determines the depth of nesting.

Syntax

Nested unordered

Indent with 2 spaces (or 4) to create a sub-list.

Result
  • Item 1
    • Sub-item 1a
    • Sub-item 1b
  • Item 2...

Nested ordered

Ordered sub-lists use 3 spaces of indentation (to align after the number and period).

Result
  1. Step one
    1. Sub-step a
    2. ...

Mixed types

Mix ordered and unordered lists at different nesting levels.

Result
  1. First
    • Bullet

Platform support

PlatformSupportedNotes
GitHubYes
GitLabYes
DiscordYes
SlackYes
NotionYes
ObsidianYes

Common mistakes

Wrong
- Item
- Sub-item (no indent)
Right
- Item
  - Sub-item (2 spaces)

Without indentation, both items appear at the same level. You must indent to create a nested list.

Wrong
Mixing tabs and spaces
Right
Use consistent 2-space or 4-space indentation

Mixing tabs and spaces causes inconsistent rendering across parsers. Pick one and stick to it.

Tips for nested list

1Keep nesting shallow

More than three levels of nesting is hard to read. Restructure with headings or separate lists if you find yourself going deeper.

22 vs 4 spaces

GitHub and most modern parsers accept 2-space indentation. Older parsers (Python-Markdown) require 4 spaces. For safety, use 4.

Frequently asked questions

Everything you need to know.

1

How do I indent a list in markdown?

Add 2 spaces (or 4) before the - or number on the sub-list item. For ordered lists, align the sub-list with the first character after the number and period.

Related elements

Try it in the editor

Paste your markdown and see nested list rendered instantly with professional themes.