2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-07-02 15:44:28 -06:00

update clean block pattern

This commit is contained in:
Adam Misiorny 2016-01-08 17:28:45 +01:00
parent 8469cbc839
commit 144d724a41

View File

@ -648,7 +648,7 @@ function _cleanBlock(cm) {
for (var line = startPoint.line; line <= endPoint.line; line++) {
text = cm.getLine(line);
text = text.replace(/^ *([# ]+|\*|\-|[> ]+|[0-9]+[.]) */, '')
text = text.replace(/^[ ]*([# ]+|\*|\-|[> ]+|[0-9]+(.|\)))[ ]*/, '')
cm.replaceRange(text, {
line: line,