Skip to content

Commit f583ab9

Browse files
brrdmarijnh
authored andcommitted
[continuelist addon] Continue task lists
1 parent 6b59a2c commit f583ab9

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

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

0 commit comments

Comments
 (0)