Skip to content

Commit 4073909

Browse files
committed
Added back todo list support in continuelist
1 parent eaa8cca commit 4073909

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

public/vendor/codemirror/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)