diff --git a/renderer.go b/renderer.go index d352665..f175fbd 100644 --- a/renderer.go +++ b/renderer.go @@ -91,7 +91,7 @@ func (r *renderer) processTaskList(node *blackfriday.Node) bool { func (r *renderer) getTaskListItemPrefix(node *blackfriday.Node) []byte { if bytes.HasPrefix(node.Literal, []byte("[ ] ")) { return uncheckedTag - } else if bytes.HasPrefix(node.Literal, []byte("[x] ")) { + } else if bytes.HasPrefix(node.Literal, []byte("[x] ")) || bytes.HasPrefix(node.Literal, []byte("[X] ")) { return checkedTag } return []byte{}