Skip to content

Commit

Permalink
Handle upper case X as check too
Browse files Browse the repository at this point in the history
  • Loading branch information
sachaos committed Apr 3, 2019
1 parent 52f3a7a commit 7ef02e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down

0 comments on commit 7ef02e9

Please sign in to comment.