diff --git a/helpers/content_renderer.go b/helpers/content_renderer.go index dee8724a9..63be58104 100644 --- a/helpers/content_renderer.go +++ b/helpers/content_renderer.go @@ -50,10 +50,12 @@ func (r *HugoHTMLRenderer) ListItem(out *bytes.Buffer, text []byte, flags int) { switch { case bytes.HasPrefix(text, []byte("[ ] ")): - text = append([]byte(``), text[3:]...) + text = append([]byte(``)...) case bytes.HasPrefix(text, []byte("[x] ")) || bytes.HasPrefix(text, []byte("[X] ")): - text = append([]byte(``), text[3:]...) + text = append([]byte(``)...) } r.Renderer.ListItem(out, text, flags) diff --git a/helpers/content_renderer_test.go b/helpers/content_renderer_test.go index 63e681d97..3bd038547 100644 --- a/helpers/content_renderer_test.go +++ b/helpers/content_renderer_test.go @@ -108,9 +108,9 @@ END `, true, `

TODO:

END

@@ -122,7 +122,7 @@ END {`* [ ] Off END`, true, `

END