hugo/docs/content/content/markdown-extras.md
2016-12-09 16:28:34 +01:00

1.1 KiB

aliases lastmod date menu prev next title weight toc
/doc/supported-formats/
2016-07-22 2016-07-22
main
parent
content
/content/summaries /content/multilingual Markdown Extras 66 false

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>