summaryrefslogtreecommitdiff
path: root/public/vendor/codemirror/addon/edit
diff options
context:
space:
mode:
authorWu Cheng-Han2016-01-17 18:06:21 -0600
committerWu Cheng-Han2016-01-17 18:06:21 -0600
commit4073909b1607fa92bb6c1f1725a21f295b2fa1c9 (patch)
treee620895a29c3a2f94934c46c4131ba0a53cdc308 /public/vendor/codemirror/addon/edit
parenteaa8ccaccb1091820d0a8d1223996a6dd057347d (diff)
Added back todo list support in continuelist
Diffstat (limited to 'public/vendor/codemirror/addon/edit')
-rw-r--r--public/vendor/codemirror/addon/edit/continuelist.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/vendor/codemirror/addon/edit/continuelist.js b/public/vendor/codemirror/addon/edit/continuelist.js
index df5179fe..e70e0ec8 100644
--- a/public/vendor/codemirror/addon/edit/continuelist.js
+++ b/public/vendor/codemirror/addon/edit/continuelist.js
@@ -11,8 +11,8 @@
})(function(CodeMirror) {
"use strict";
- var listRE = /^(\s*)(>[> ]*|[*+-]\s|(\d+)([.)]))(\s*)/,
- emptyListRE = /^(\s*)(>[> ]*|[*+-]|(\d+)[.)])(\s*)$/,
+ var listRE = /^(\s*)(>[> ]*|[*+-]\s|(\d+)([.)]))(\[\s\]\s|\[x\]\s|\s*)/,
+ emptyListRE = /^(\s*)(>[> ]*|[*+-]\s|(\d+)[.)])(\[\s\]\s*|\[x\]\s|\s*)$/,
unorderedListRE = /[*+-]\s/;
CodeMirror.commands.newlineAndIndentContinueMarkdownList = function(cm) {