← Back to blog/Guides

Markdown Lists: Bullets, Numbering, and Nested Steps

Build ordered and unordered lists that preserve paragraphs, sub-bullets, and code blocks without restarting the numbering.

F
Faizan Khan
• 7 min read

Create a Markdown bullet list with - , * , or + before each item. Create a numbered list with 1. , 2. , and so on. To nest content, indent it to the parent item's text column; the required spaces depend on the width of the list marker, not a universal two-space rule.

Markdown
11. Prepare the workspace.
2 - Confirm the project name.
3 - Check the destination folder.
42. Publish the changes.

This is one ordered list with a two-item unordered list inside its first item. Nesting is structural: it means the checks belong to preparation, not to the whole procedure.

Bullet lists and numbered lists solve different problems

Use bullets for a collection whose order does not matter: supported formats, prerequisites, or related resources. Use numbers for steps that readers must follow in sequence.

Markdown
1- A project name
2- An approved destination
3- A review contact
HTML
1<ul>
2<li>A project name</li>
3<li>An approved destination</li>
4<li>A review contact</li>
5</ul>

For ordered lists, the first number establishes the starting value. Subsequent source numbers do not independently control each rendered item:

Markdown
13. Review the draft.
28. Approve the draft.
31. Publish the draft.

The meaningful output is an ordered list starting at three, displayed as 3, 4, and 5. You can write every marker as 1. for easier rearrangement, but sequential numbers are clearer when someone reads the raw file.

Do not describe an important decision as "choose item 8" when the source marker alone is eight. Refer to the option by name, or verify the rendered numbering.

Nest by the content column

Count the marker and the space after it. For - , content starts after two characters. For 1. it starts after three. For 10. it starts after four.

Markdown
1- Prepare assets.
2 - Check filenames.
3 - Remove private data.
4
51. Prepare assets.
6 - Check filenames.
7 - Remove private data.
8
910. Prepare assets.
10 - Check filenames.
11 - Remove private data.

These examples use one space after each marker. Extra marker padding can change the offset. The CommonMark list-item specification is useful for unusual cases; for everyday writing, consistent marker spacing and visible editor whitespace prevent most surprises.

Avoid mixing tabs and spaces to make things "look aligned." A tab can expand differently from the editor's displayed width. The Markdown indentation guide separates structural indentation from cosmetic spacing.

Keep a second paragraph inside the same step

A continuation paragraph needs both a blank line and the parent content indentation:

Markdown
11. Export the source files.
2
3 Keep the original directory structure so relative links remain meaningful.
42. Review the exported files.

The first item's HTML contains two paragraphs. Without indentation, the explanatory paragraph can leave the list; the next numbered item may then start a separate list.

This is a frequent cause of numbering that appears to restart after a note or screenshot. Fix the ownership of the intervening block rather than manually changing every following number.

If the explanation is just a wrapped continuation of one sentence, a soft newline may be enough. If a visible line break is genuinely needed inside the paragraph, use the hard-break syntax and keep the continuation aligned.

Put fenced code inside a list item

Use a longer outer fence when demonstrating a fence:

Markdown
11. Create a small configuration file.
2
3 ```json
4 { "mode": "preview" }
5 ```
6
7 Confirm that the mode is preview before continuing.
82. Open the preview.

Here the opening fence, code, closing fence, and following paragraph all belong to step one. The three leading spaces establish the list container. They are not extra spaces in the JSON payload.

For a long procedure, prefer fenced blocks to indented code. They make the language and boundaries easier to see. An unclosed fence can consume the remaining steps as code, so always check the rendered end of the list. See Markdown code blocks for nested fence rules.

Understand tight and loose list spacing

These lists have different paragraph structure:

Markdown
1- Review
2- Approve
Markdown
1- Review
2
3- Approve

The second is a loose list: its item text is wrapped in paragraph elements, which themes often give more vertical space. Blank lines are meaningful, not just source decoration.

A team can choose compact lists for short labels and loose lists for multi-paragraph explanations. Do not mix unrelated nesting levels merely to obtain a preferred margin. The source should describe relationships; CSS should control presentation.

Changing a bullet marker from - to * can also split adjacent sequences into separate lists. Use consistent markers unless you intend that boundary.

A reusable procedure template

Markdown
1## Before you begin
2
3- Confirm the destination project.
4- Keep a copy of the original files.
5
6## Publish a reviewed change
7
81. Prepare the draft.
9
10 Include the intended outcome and the affected audience.
112. Run the preview.
12
13 ```text
14 Expected result: the draft opens without missing assets.
15 ```
16
173. Ask the reviewer to check:
18 - The written instructions
19 - The links and screenshots
204. Publish only after approval.

This template keeps prerequisites unordered, actions ordered, and review criteria nested under the action that owns them. For status tracking rather than instructions, use a task list.

Troubleshoot by inspecting structure

ProblemCheckCorrection
Sub-bullet appears at the top levelParent marker widthAlign the child to the parent text column
Numbers restart after a code sampleFence indentation and closing fenceKeep the entire block inside the step
A paragraph becomes codeToo much indentation outside a containerRemove unintended four-space indentation
A year starts a list accidentallyNumber followed by a period and spaceEscape the period, as in 2026\. Results
List spacing changes unexpectedlyBlank lines between or within itemsChoose tight or loose structure deliberately

Before publishing, read the procedure once without its visual styling. Each step should still have an identifiable action, and each nested item should have an obvious parent. Deeply nested lists can be technically valid but difficult to follow; split long branches into named sections instead.

FAQ

Do all numbered Markdown items have to use consecutive numbers?

No. In CommonMark, the first marker sets the starting number and later items follow sequentially in the rendered list. Consecutive source numbers can still improve raw-file readability.

How many spaces create a nested Markdown list?

Align the nested marker with the parent item's text. With one space after the marker, that is two spaces for a dash bullet, three for 1., and four for 10..

Why does numbering restart after my paragraph?

The paragraph may have ended the list because it was not indented inside the current item. Keep continuation paragraphs, images, and fences aligned with the parent content column.

Continue This Guide