Lists are one of the most common elements you'll write, whether you're drafting a README, a changelog, or a set of notes. A well-structured markdown list keeps content scannable, readable, and easy to maintain. In this guide we'll cover unordered (bullet) lists, ordered (numbered) lists, how to build a clean nested list markdown layout, multi-paragraph items, task lists, and the most common mistakes that break formatting. If you want to try any of these examples as you read, paste them into the online editor and watch the preview update as you type.
Unordered (Bullet) Lists
Unordered lists are your go-to for items where sequence doesn't matter. Markdown gives you three interchangeable markers: the hyphen -, the asterisk *, and the plus sign +. All three render as the same bullet.
- Apples
- Oranges
- BananasYou can also use * or +:
* Draft the outline
* Write the first section
* Review and revise+ Run the tests
+ Commit the changes
+ Open a pull requestThe single rule: pick one marker and stick with it within a list. Changing the bullet marker at the same indentation starts a separate list in CommonMark. Keep one marker when the items belong together; a linter may enforce this convention too. For a broader overview of where lists fit into the language, see our introduction to Markdown.
Ordered (Numbered) Lists
Ordered lists are for sequences — steps, rankings, or anything where order matters. Start each line with a number followed by a period and a space.
1. Clone the repository
2. Install dependencies
3. Start the development serverHere's a detail that surprises many newcomers: the actual numbers don't have to be sequential. Most renderers (and GitHub Flavored Markdown in particular) will renumber the list automatically based on position. Many writers therefore type 1. for every item, which makes it trivial to reorder entries later without renumbering:
1. First step
1. Second step
1. Third stepThis renders as 1. 2. 3. You can also start from a number other than one — 3. will begin the list at 3 — though support for the starting value varies slightly across renderers.
For a full reference of list markers and other syntax at a glance, grab our Markdown cheat sheet.
Comparison of List Markers
| Marker | List type | Notes |
|---|---|---|
- |
Unordered | Most common; widely recommended for consistency |
* |
Unordered | Valid; common in older docs |
+ |
Unordered | Valid; less common today |
1. |
Ordered | The leading number sets the start value |
- [ ] / - [x] |
Task list | GFM extension; renders checkboxes |
| Blank lines between items | Loose list | Items are separated into paragraphs; paired asterisks do not define a list type |
Nested Lists in Markdown
Indentation is everything when you want a nested list markdown structure. To nest a list, indent the child marker to at least the parent item's content column. For a simple - parent that is two spaces; for 1. it is three; for 10. it is four. The marker width matters, so a fixed two-space rule does not cover every ordered list. See the CommonMark list-item rules.
- Fruits
- Apples
- Fuji
- Granny Smith
- Oranges
- Vegetables
- Carrots
- SpinachRenders as:
- Fruits
- Apples
- Fuji
- Granny Smith
- Oranges
- Apples
- Vegetables
- Carrots
- Spinach
You can also mix list types — for example, ordered steps nested under a bullet:
- Setup checklist
1. Install Node.js
2. Clone the repo
3. Run `npm install`
- Deployment
1. Build the project
2. Deploy to your hostA reliable starting point is to align the child marker under the first character of the parent item's text. For example:
10. Review the import
- Check the header
- Count the rowsThe four spaces match the width of 10. . Preview the result after changing marker widths or adding code blocks.
Lists with Multiple Paragraphs and Long Items
Sometimes a single bullet needs to carry more than one paragraph, or a code block, or a sub-list. To add another paragraph to the same list item, indent the continuation by the same amount as the list content (typically 2 spaces for - markers, or 4 to match a 4-space style):
- First item.
Second paragraph of the first item.
- Second item, with a code sample:
```js
console.log('lists are great')
```The blank line before the continuation paragraph is required — without it, the text gets folded into the previous line as a "soft wrap" rather than treated as a new paragraph. Code blocks inside list items follow the same indentation rule: indent the opening and closing fences to match the item's content level.
Task Lists (Checkboxes)
GitHub Flavored Markdown adds a special bullet for checklists: - [ ] for an open item and - [x] for a completed one.
- [x] Draft the outline
- [x] Write the examples
- [ ] Proofread
- [ ] PublishTask lists are hugely useful in issues, PRs, and project READMEs. Because they have their own quirks (like rendering behavior and nested checkboxes), we cover them in depth in our Markdown task lists guide. For more GFM-specific features in general, see the GitHub Flavored Markdown guide.
Common Mistakes and How to Fix Them
Most broken lists come down to two things: inconsistent indentation and missing blank lines.
Indenting by a fixed amount without checking the parent. A nested bullet under
10.needs the parent's content indentation, which is wider than-. Align content columns and inspect the resulting nesting.Tabs instead of spaces. Tabs technically work in many parsers, but mixing tabs and spaces in the same document is the classic recipe for broken nesting. Convert tabs to spaces for safety.
No blank line before a list. Some renderers need a blank line between a paragraph and the list that follows it, otherwise the list can be absorbed into the paragraph. Always leave an empty line before a list (and usually after one too).
Trailing spaces on the marker line. Two or more trailing spaces create a hard line break, which can disrupt list rendering. Trim trailing whitespace.
Changing bullet markers unintentionally. Switching between
-and*at the same level starts a separate list in CommonMark. Keep one marker for one continuous group.
<!-- Wrong: no blank line, mixed markers, sloppy indentation -->
Text directly above
- Item one
* Item two with 3 spaces
- Item three<!-- Right: blank line, single marker, consistent 2-space nesting -->
- Item one
- Item two
- Item threeFrequently Asked Questions
How many spaces should I use to indent a markdown list?
Start by aligning the child marker beneath the parent item's content. A - parent commonly needs two spaces, 1. three spaces, and 10. four spaces. More complex blocks can need additional indentation. Use spaces consistently and check the final renderer.
Do I need to type the actual numbers in an ordered list?
No. Renderers renumber ordered lists based on position, so typing 1. for every item is a perfectly valid and popular technique — it makes reordering items trivial. The only number that matters is the first one, which sets the list's starting value.
Can I mix ordered and unordered lists?
Yes. You can nest an ordered list inside a bullet list or vice versa, as long as the indentation lines up under the parent item's text. Mixing list types within the same level (e.g., a 1. directly after a - on the same level) is generally discouraged, since renderers may treat them as separate lists.
Why won't my nested list render correctly?
Indentation is a common cause. Check that child items align with the parent item's content, that you have not mixed tabs and spaces, and that the surrounding blocks are separated clearly. Preview the same source in the target platform too: a renderer's extensions can affect the result.
Consistent markers, indentation, and block spacing make Markdown lists easier to maintain. Preview nested items, task boxes, and paragraphs in the platform where the document will be used; Markdown extensions and styling can change their appearance.
Try it in your browser
Open the homepage editor to view, edit, and download Markdown without installing an application.
More articles
Markdown Task Lists: Add Checklists and Checkboxes
Write GFM task lists, nest checklist items, and understand when checkboxes are view-only or can update the source.
Markdown Code Blocks: Syntax Highlighting and Inline Code
Master markdown code block syntax highlighting: inline code with single backticks, fenced blocks, language hints, nesting, and tips for clean, readable code in docs.
How to Create Tables in Markdown (With Alignment)
Learn markdown table syntax with copy-paste examples: the GFM alignment row, inline formatting in cells, common gotchas, and how tables render across viewers.
GitHub Flavored Markdown: Syntax, Extensions, and Preview Limits
Use GFM tables, task lists, strikethrough, and autolinks, and distinguish the formal syntax from GitHub-specific rendering and security behavior.