diff options
author | Wu Cheng-Han | 2016-01-17 18:06:21 -0600 |
---|---|---|
committer | Wu Cheng-Han | 2016-01-17 18:06:21 -0600 |
commit | 4073909b1607fa92bb6c1f1725a21f295b2fa1c9 (patch) | |
tree | e620895a29c3a2f94934c46c4131ba0a53cdc308 /public/vendor/codemirror/addon/edit | |
parent | eaa8ccaccb1091820d0a8d1223996a6dd057347d (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.js | 4 |
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) { |