Hugo provides some convenient markdown extensions.

Task lists

Hugo supports GitHub styled task lists (TODO lists) for the Blackfriday renderer (md-files). See Blackfriday config for how to turn it off.

Example:

- [ ] a task list item
- [ ] list syntax required
- [ ] incomplete
- [x] completed

Renders as:

  • a task list item
  • list syntax required
  • incomplete
  • completed

And produces this HTML:


<ul class="task-list">
<li><input type="checkbox" disabled="" class="task-list-item"> a task list item</li>
<li><input type="checkbox" disabled="" class="task-list-item"> list syntax required</li>
<li><input type="checkbox" disabled="" class="task-list-item"> incomplete</li>
<li><input type="checkbox" checked="" disabled="" class="task-list-item"> completed</li>
</ul>