code: func (r *HugoHTMLRenderer) ListItem(out *bytes.Buffer, text []byte, flags int) {
  	if !r.Config.TaskLists {
  		r.Renderer.ListItem(out, text, flags)
  		return
  	}
  
  	switch {
  	case bytes.HasPrefix(text, []byte("[ ] ")):
  		text = append([]byte(`<label><input type="checkbox" disabled class="task-list-item">`), text[3:]...)
  		text = append(text, []byte(`</label>`)...)
  
  	case bytes.HasPrefix(text, []byte("[x] ")) || bytes.HasPrefix(text, []byte("[X] ")):
  		text = append([]byte(`<label><input type="checkbox" checked disabled class="task-list-item">`), text[3:]...)
  		text = append(text, []byte(`</label>`)...)
  	}
  
  	r.Renderer.ListItem(out, text, flags)
  }
docs: // ListItem adds task list support to the Blackfriday renderer.