From 7ef02e95eac12412f1b36f5cf9447fb4d4f58921 Mon Sep 17 00:00:00 2001 From: Takumasa Sakao Date: Wed, 3 Apr 2019 18:30:27 +0900 Subject: [PATCH] Handle upper case X as check too --- renderer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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{}