{"id":1058,"date":"2026-11-07T22:00:00","date_gmt":"2026-11-07T22:00:00","guid":{"rendered":"https:\/\/thenesttools.com\/blog\/?p=1058"},"modified":"2026-11-07T22:00:00","modified_gmt":"2026-11-07T22:00:00","slug":"markdown-task-lists-checkboxes","status":"publish","type":"post","link":"https:\/\/thenesttools.com\/blog\/markdown-task-lists-checkboxes\/","title":{"rendered":"Markdown Checkboxes and Task Lists: Syntax and Examples"},"content":{"rendered":"<p><strong>To make a checkbox in Markdown, start a list item with a dash, a space and square brackets: <code>- [ ]<\/code> for an empty box and <code>- [x]<\/code> for a ticked one.<\/strong> This is called a task list. It is part of GitHub Flavored Markdown (GFM), so it works on GitHub, GitLab, Obsidian, VS Code&#8217;s preview and most modern editors, but not in strict standard Markdown.<\/p>\n<h2>Task List Syntax<\/h2>\n<pre><code>- [ ] Draft the blog post\n- [x] Send the invoice\n- [ ] Review the budget<\/code><\/pre>\n<p>Three things must be exactly right:<\/p>\n<ol>\n<li>A list marker: <code>-<\/code>, <code>*<\/code>, <code>+<\/code> or a number such as <code>1.<\/code><\/li>\n<li>A <strong>space<\/strong> after the marker.<\/li>\n<li>Square brackets with a <strong>space<\/strong> inside for empty, or <code>x<\/code> (lowercase or capital) for done, then another space before the text.<\/li>\n<\/ol>\n<h2>What HTML Does a Task List Produce?<\/h2>\n<p>A GFM converter turns each item into a list item holding a checkbox input. The <a href=\"https:\/\/thenesttools.com\/markdown-to-html\/\">Markdown to HTML converter<\/a> produces this from the example above:<\/p>\n<pre><code>&lt;ul&gt;\n&lt;li&gt;&lt;input disabled=\"\" type=\"checkbox\"&gt; Draft the blog post&lt;\/li&gt;\n&lt;li&gt;&lt;input checked=\"\" disabled=\"\" type=\"checkbox\"&gt; Send the invoice&lt;\/li&gt;\n&lt;li&gt;&lt;input disabled=\"\" type=\"checkbox\"&gt; Review the budget&lt;\/li&gt;\n&lt;\/ul&gt;<\/code><\/pre>\n<p>The boxes are <code>disabled<\/code>, so readers can&#8217;t tick them on a web page. That is normal: Markdown describes the state when it was written. Apps such as GitHub and Obsidian add their own code to make boxes clickable.<\/p>\n<h2>Common Mistakes (and Fixes)<\/h2>\n<table>\n<thead>\n<tr>\n<th>You typed<\/th>\n<th>What happens<\/th>\n<th>Fix<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>-[ ] task<\/code><\/td>\n<td>Shows as plain text<\/td>\n<td>Add a space after the dash<\/td>\n<\/tr>\n<tr>\n<td><code>- [] task<\/code><\/td>\n<td>Shows literal brackets<\/td>\n<td>Put a space inside: <code>[ ]<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>- [x]task<\/code><\/td>\n<td>Often not recognised<\/td>\n<td>Add a space after the brackets<\/td>\n<\/tr>\n<tr>\n<td><code>[ ] task<\/code><\/td>\n<td>Plain text<\/td>\n<td>Task lists must be list items: start with <code>-<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>- [v] task<\/code><\/td>\n<td>Plain text<\/td>\n<td>Only <code>x<\/code> or <code>X<\/code> counts as ticked<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Nested and Numbered Task Lists<\/h2>\n<p>Indent sub-tasks by two to four spaces under the parent item:<\/p>\n<pre><code>- [ ] Launch the website\n  - [x] Buy the domain\n  - [ ] Write the About page\n  - [ ] Test on a phone\n1. [x] Numbered tasks work too\n2. [ ] Second step<\/code><\/pre>\n<p>Keep the indentation consistent. Mixing tabs and spaces is the usual reason a nested item breaks out of its parent.<\/p>\n<h2>Where Do Markdown Checkboxes Work?<\/h2>\n<table>\n<thead>\n<tr>\n<th>App<\/th>\n<th>Shows boxes?<\/th>\n<th>Clickable?<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>GitHub issues, pull requests, comments<\/td>\n<td>Yes<\/td>\n<td>Yes, and the issue shows a progress count<\/td>\n<\/tr>\n<tr>\n<td>GitHub README files<\/td>\n<td>Yes<\/td>\n<td>No, edit the file to change them<\/td>\n<\/tr>\n<tr>\n<td>GitLab<\/td>\n<td>Yes<\/td>\n<td>Yes in issues and merge requests<\/td>\n<\/tr>\n<tr>\n<td>Obsidian<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr>\n<td>VS Code Markdown preview<\/td>\n<td>Yes<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td>Strict CommonMark tools<\/td>\n<td>No, shows <code>[ ]<\/code> as text<\/td>\n<td>No<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>If your platform shows the brackets as text, it isn&#8217;t using GFM. Look for a &#8220;GitHub Flavored Markdown&#8221; or &#8220;extensions&#8221; setting, or convert the list to HTML first.<\/p>\n<h2>How to Show Square Brackets Without a Checkbox<\/h2>\n<p>Put a backslash before the first bracket: <code>- \\[ ] not a task<\/code>. The converter then prints the brackets as ordinary text.<\/p>\n<h2>Practical Uses<\/h2>\n<ul>\n<li><strong>Project READMEs:<\/strong> a roadmap with done and pending features.<\/li>\n<li><strong>Pull request checklists:<\/strong> &#8220;tests added&#8221;, &#8220;docs updated&#8221;, &#8220;screenshots attached&#8221;.<\/li>\n<li><strong>Personal notes:<\/strong> a weekly to-do list in Obsidian or any notes app.<\/li>\n<li><strong>Emails and web pages:<\/strong> write the list in Markdown, convert it to HTML and paste the result.<\/li>\n<\/ul>\n<p>For a list you&#8217;ll print or tick off daily, a planner may suit you better. The free <a href=\"https:\/\/thenesttools.com\/planner\/daily-planner\/\">Daily Planner<\/a> saves your tasks in the browser and prints them as a page.<\/p>\n<h2>Frequently Asked Questions<\/h2>\n<h3>Is a Markdown checkbox the same as a task list?<\/h3>\n<p>Yes. &#8220;Task list&#8221; is the official GitHub Flavored Markdown name; people search for it as &#8220;Markdown checkbox&#8221;. Both mean <code>- [ ]<\/code> and <code>- [x]<\/code> items.<\/p>\n<h3>Can I use a capital X to tick a box?<\/h3>\n<p>Yes. The GFM specification accepts both <code>[x]<\/code> and <code>[X]<\/code>.<\/p>\n<h3>Why can&#8217;t I click the checkbox on my web page?<\/h3>\n<p>Converters output disabled checkboxes, because Markdown is a static document. To make boxes clickable you need a little JavaScript, or an app such as GitHub or Obsidian that adds it for you.<\/p>\n<h3>Do task lists work in standard Markdown?<\/h3>\n<p>No. They are a GFM extension. Standard CommonMark shows the brackets as text, so use a GFM-compatible editor or converter.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Type &#8211; [ ] for an empty box and &#8211; [x] for a ticked one. Syntax, nested lists, the HTML it produces and where checkboxes work.<\/p>\n","protected":false},"author":1,"featured_media":1057,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-1058","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-writing-text"],"_links":{"self":[{"href":"https:\/\/thenesttools.com\/blog\/wp-json\/wp\/v2\/posts\/1058","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thenesttools.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thenesttools.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thenesttools.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thenesttools.com\/blog\/wp-json\/wp\/v2\/comments?post=1058"}],"version-history":[{"count":1,"href":"https:\/\/thenesttools.com\/blog\/wp-json\/wp\/v2\/posts\/1058\/revisions"}],"predecessor-version":[{"id":1401,"href":"https:\/\/thenesttools.com\/blog\/wp-json\/wp\/v2\/posts\/1058\/revisions\/1401"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thenesttools.com\/blog\/wp-json\/wp\/v2\/media\/1057"}],"wp:attachment":[{"href":"https:\/\/thenesttools.com\/blog\/wp-json\/wp\/v2\/media?parent=1058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thenesttools.com\/blog\/wp-json\/wp\/v2\/categories?post=1058"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thenesttools.com\/blog\/wp-json\/wp\/v2\/tags?post=1058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}