File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1111} ) ( function ( CodeMirror ) {
1212 "use strict" ;
1313
14- var listRE = / ^ ( \s * ) ( > [ > ] * | [ * + - ] \s | ( \d + ) ( [ . ) ] ) ) ( \s * ) / ,
15- emptyListRE = / ^ ( \s * ) ( > [ > ] * | [ * + - ] | ( \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 ) {
3939 } else {
4040 var indent = match [ 1 ] , after = match [ 5 ] ;
4141 var bullet = unorderedListRE . test ( match [ 2 ] ) || match [ 2 ] . indexOf ( ">" ) >= 0
42- ? match [ 2 ]
42+ ? match [ 2 ] . replace ( "x" , " " )
4343 : ( parseInt ( match [ 3 ] , 10 ) + 1 ) + match [ 4 ] ;
4444
4545 replacements [ i ] = "\n" + indent + bullet + after ;
You can’t perform that action at this time.
0 commit comments