Fixing blockquote end check

This commit is contained in:
Jay Contonio 2020-02-11 08:09:59 -08:00 committed by Marijn Haverbeke
parent aa05cca0c5
commit 2f51b60003
1 changed files with 3 additions and 1 deletions

View File

@ -41,7 +41,9 @@
return;
}
if (emptyListRE.test(line)) {
if (!/>\s*$/.test(line)) cm.replaceRange("", {
var endOfQuote = inQuote && />\s*$/.test(line)
var endOfList = !/>\s*$/.test(line)
if (endOfQuote || endOfList) cm.replaceRange("", {
line: pos.line, ch: 0
}, {
line: pos.line, ch: pos.ch + 1