← Back to blog/Guides

Markdown Checkboxes: Task Lists That Stay Readable

Write GFM task lists with correct spacing, nested tasks, and clear completion criteria, without confusing a static checkbox with a saved form.

F
Faizan Khan
• 5 min read

To create a Markdown checkbox in GitHub Flavored Markdown, write - [ ] Task for an unchecked item or - [x] Task for a checked item. Keep the spaces after the dash, inside the empty brackets, and before the task text. Task lists are a GFM extension, not a feature guaranteed by every Markdown renderer.

Markdown
1- [x] Draft the recovery instructions.
2- [ ] Test the recovery procedure.
3- [ ] Ask a second person to review the result.

A checkbox is useful for tracking whether something is done. It does not explain how to do the work; link to the procedure or include the acceptance condition in the item itself.

Read the syntax character by character

PartPurpose
- Starts a list item
[ ]Marks the task as incomplete
[x] or [X]Marks the task as complete
Space after ]Separates the marker from the label
Task textNames the action or completion condition

[] is not an empty task marker. A standalone [ ] outside a list is not a portable checkbox either. Start with the complete list form rather than relying on an editor to infer missing syntax.

The GFM task-list specification defines the extension and leaves interaction behavior to implementations. A typical renderer emits an HTML checkbox input, often disabled on a static page:

HTML
1<input type="checkbox" disabled />

That is an illustrative element, not a promise about the exact wrappers, classes, attribute order, or interactive behavior of every platform.

A release-review checklist you can adapt

Markdown
1## Documentation release review
2
3- [ ] Confirm that the instructions match the release being shipped.
4- [ ] Run each example from a clean starting state.
5- [ ] Open every changed internal link.
6- [ ] Check screenshots for private data and outdated controls.
7- [ ] Verify that warnings appear before risky actions.
8- [ ] Preview the article at a narrow screen width.
9- [ ] Record the reviewer and review date in the release record.

Each item describes observable work. "Improve quality" would be difficult to mark complete honestly because it gives the reviewer no stopping condition. "Run each example from a clean starting state" gives the reviewer a concrete check.

Keep reusable checklist templates unchecked. Otherwise, a reader can mistake the template author's completed example for evidence that the current release was reviewed.

If a task has an owner or deadline, include that information in the surrounding workflow. A static checkbox does not send reminders, assign work, or prove approval.

Nest tasks under the check they support

Markdown
1- [ ] Verify the import guide.
2 - [x] Test a file with headings and links.
3 - [ ] Test a file with images in a subfolder.
4 - [ ] Test a file containing a table.
5- [ ] Review the published output.

The nested markers align with the parent bullet's text column: two spaces in this example. Do not assume that a checked parent automatically checks its children or that completed children automatically complete the parent. Those are application behaviors, not Markdown rules.

A good parent condition is "Verify the import guide," with child tests showing what verification means. When the nested checklist grows into several levels, split it into named sections. The list guide covers content-column indentation and paragraphs inside items.

Static rendering is not saved task state

Three separate capabilities are easy to confuse:

CapabilityWhat it means
RenderingThe page displays checked or unchecked boxes
InteractionA reader can toggle a box in the current interface
PersistenceThe changed state is stored and available later

A documentation page may provide only the first. Even an enabled HTML checkbox can change visually without saving anything. Refreshing the page can restore the original state.

GitHub has platform-specific task interactions on supported surfaces, but a Markdown file exported elsewhere does not carry that whole application with it. Test the exact surface and permissions before telling a team to use a published checklist as its system of record.

For instructions that users should follow in order, a numbered list may be better. For an important prerequisite, visible prose or a warning callout is more reliable than hiding the information among optional checks.

Troubleshoot missing checkboxes

Markdown
1- [] Missing space inside the brackets
2- [ ]Correct marker, missing separation before the label
3[ ] Not a list item

Replace those with - [ ] A clear task label. If the corrected text still displays literally, verify that task-list support is enabled. Core CommonMark does not render the GFM extension as checkbox inputs.

Inside a code fence, task markers intentionally remain literal. Inside a table cell, the cell's inline content is not an ordinary block-level list; do not expect - [ ] to become a task list there. Use a text status such as "Pending" or place the checklist below the table instead.

Finally, preserve meaningful text labels. A row of unlabeled boxes is difficult to understand, especially when copied into plain text or read without the original visual layout.

FAQ

How do I mark a Markdown checkbox as complete?

Replace the space inside the brackets with x, producing - [x] Task. Uppercase X is also valid in GFM task markers.

Why are my Markdown checkboxes not clickable?

The renderer may intentionally output disabled inputs or provide no task-editing interface. Displaying task-list syntax does not imply interactive or saved state.

Can I put Markdown checkboxes in a table?

Task-list syntax is defined for list items, not ordinary inline table-cell text. Use a status label or a separate task list unless your platform documents an additional feature.

Continue This Guide