Markdown: Markdown List Syntax and Nesting
Last updated: 2026-10-14
Lists are the simplest way to turn scattered information into structured content — readers can grasp the key points at a glance.
1. What You'll Learn
- Syntax for unordered and ordered lists
- Correct way to nest lists
- Creating and using task lists
- Paragraphs, code blocks, and blockquotes inside lists
- Common list mistakes and how to fix them
2. A Project Manager's Real Story
(1) Pain Point: Chaotic Task Assignments
Chris is a project manager for a development team. Every Monday, he writes the weekly task plan in a document. He used to describe tasks in plain text — team members frequently missed items and mixed up priorities. Someone would ask, "Is this my task or yours?" Another would say, "I didn't know where this task ranked in priority."
(2) Solution: Structuring Tasks with Lists
Chris switched to using Markdown lists to organize tasks: ordered lists for priorities, task lists (- [ ]) for completion status, and nested lists for subtasks. The team's reading efficiency improved dramatically:
(3) Benefit: Clear Task Ownership
| Dimension | Before | After |
|---|---|---|
| Missed tasks per week | 3-5 | 0 |
| "Who owns this?" questions | frequent | rare |
| Time spent clarifying | ~30 min/day | ~5 min/day |
| Sprint completion rate | 65% | 92% |
3. Unordered Lists
(1) Basic Syntax
Unordered lists start with -, *, or + followed by a space:
Tip: All three symbols produce the same result. We recommend sticking with
-— it's the least likely to be confused with other syntax like italic*.
(2) Multi-Paragraph List Items
If a list item contains multiple paragraphs, keep the indentation consistent:
▶ Example: Organizing Information with Unordered Lists
Output:
TEXTRenders as a structured checklist organized by team, with each category containing specific action items.
4. Ordered Lists
(1) Basic Syntax
Ordered lists start with a number followed by a period:
Tip: Markdown does not require consecutive numbers — you can write
1.for every item and it will auto-increment when rendered. But using real numbers makes the source more readable.
(2) Starting from a Specific Number
Some scenarios require starting from a number other than 1:
Tip: On GitHub, you can also insert explanatory text between list items and continue the numbering — Markdown will recognize the sequence automatically.
▶ Example: Expressing Steps with Ordered Lists
Output:
TEXTRenders as numbered steps. Ordered lists are a natural fit for step-by-step guides — each step contains an action command and a brief explanation.
Tip: In step-by-step guides, ordered lists are the natural choice for representing execution order. Each step includes one action command and a short description.
5. Nested Lists
Nested lists are created through indentation. Child lists are indented 2 more spaces (or 1 Tab) than their parent:
(1) Unordered List Nested in Unordered List
(2) Unordered List Nested in Ordered List
▶ Example: Three-Level Nesting for Category Structure
Output:
TEXTRenders as a three-level nested list with clear visual hierarchy — each level indented further to the right.
Caution: Don't nest more than 3 levels — readability drops sharply. If you need deeper hierarchy, consider using headings or tables instead.
6. Task Lists
Task lists are a GFM extension. Use - [ ] for incomplete items and - [x] for completed items:
Caution: The
[x]in task lists is case-insensitive — both[x]and[X]mean completed. There must be a space after the bracket: use- [ ]not-[].
▶ Example: Tracking Project Progress with Task Lists
Output:
TEXTRenders with checkboxes — completed items show as checked, incomplete items as unchecked. Perfect for project status tracking.
Tip: Using task lists in GitHub Issues and Pull Requests is extremely effective — team members can see progress at a glance.
7. Other Content Inside Lists
(1) Code Blocks Inside Lists
Code blocks inside list items need extra indentation (8 spaces or two Tabs):
Caution: Code blocks inside lists can't use the
```fenced syntax (it breaks the list in some parsers). The recommended approach is 8-space indentation.
(2) Blockquotes Inside Lists
8. Complete Example: Planning a Project with Lists
Project Kickoff Plan
## Sprint 1: Foundation (Weeks 1-2)
- [x] Project initialization
1. Create Git repository
2. Configure CI/CD
3. Set up dev environment
- [ ] User system
- [x] Registration/login API
- [ ] Email verification
- [ ] OAuth third-party login
- [ ] Database design
- [x] ER diagram complete
- [ ] Table creation scripts
- [ ] Seed data
## Sprint 2: Core Features (Weeks 3-4)
1. **Product Module**
- Product CRUD
- Category management
- Search functionality
2. **Order Module**
- Create order
- Payment flow
- Order status management
> Note: All tasks in the scorecard must be completed by the end of the Sprint.
Expected result: A clear project plan organized by Sprint, using multiple list types to organize tasks at different levels of granularity.
❓ FAQ
-, *, or + for unordered lists?- — it won't be confused with italic * and is semantically clear.📖 Summary
- Use
-for unordered lists,1.for ordered lists, and- [ ]for task lists - Nest lists by indenting 2-4 spaces
- Code blocks inside lists need 8-space indentation
[x]in task lists means completed,[ ]means not yet done- Lists are commonly used for task checklists, step-by-step guides, and categorized summaries
- Try to keep list items roughly the same length, 1-2 lines each
📝 Exercises
-
Beginner: List 5 technical topics you plan to learn this week with an unordered list, describe the learning steps (from setup to practice) with an ordered list, and track your progress with a task list.
-
Intermediate: Create a "Project Migration Plan" containing at least 3 main phases (ordered list), each phase containing subtasks (nested unordered list), and an inspection checklist (task list).
-
Challenge: Write a list item that mixes nested lists, code blocks, and blockquotes — all three content types together. For example: inside a "Deployment Steps" list item, embed a bash command code block, and add a blockquote underneath with a cautionary note.