Skip to content

Commit c6c7928

Browse files
committed
Make continunlist addon also support todo list
1 parent d9e0426 commit c6c7928

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addon/edit/continuelist.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
})(function(CodeMirror) {
1212
"use strict";
1313

14-
var listRE = /^(\s*)(>[> ]*|[*+-]\s|(\d+)([.)]))(\s*)/,
15-
emptyListRE = /^(\s*)(>[> ]*|[*+-]|(\d+)[.)])(\s*)$/,
14+
var listRE = /^(\s*)(>[> ]*|[*+-]\s|(\d+)([.)]))(\[\s\]\s|\[x\]\s|\s*)/,
15+
emptyListRE = /^(\s*)(>[> ]*|[*+-]\s|(\d+)[.)])(\[\s\]\s*|\[x\]\s|\s*)$/,
1616
unorderedListRE = /[*+-]\s/;
1717

1818
CodeMirror.commands.newlineAndIndentContinueMarkdownList = function(cm) {

0 commit comments

Comments
 (0)