Skip to content

Commit 2f51b60

Browse files
jcontoniomarijnh
authored andcommitted
Fixing blockquote end check
1 parent aa05cca commit 2f51b60

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

addon/edit/continuelist.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@
4141
return;
4242
}
4343
if (emptyListRE.test(line)) {
44-
if (!/>\s*$/.test(line)) cm.replaceRange("", {
44+
var endOfQuote = inQuote && />\s*$/.test(line)
45+
var endOfList = !/>\s*$/.test(line)
46+
if (endOfQuote || endOfList) cm.replaceRange("", {
4547
line: pos.line, ch: 0
4648
}, {
4749
line: pos.line, ch: pos.ch + 1

0 commit comments

Comments
 (0)