mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-06-28 02:10:04 +02:00
cs fixes
This commit is contained in:
parent
144d724a41
commit
664c081876
|
@ -646,9 +646,9 @@ function _cleanBlock(cm) {
|
||||||
var endPoint = cm.getCursor("end");
|
var endPoint = cm.getCursor("end");
|
||||||
var text;
|
var text;
|
||||||
|
|
||||||
for (var line = startPoint.line; line <= endPoint.line; line++) {
|
for(var line = startPoint.line; line <= endPoint.line; line++) {
|
||||||
text = cm.getLine(line);
|
text = cm.getLine(line);
|
||||||
text = text.replace(/^[ ]*([# ]+|\*|\-|[> ]+|[0-9]+(.|\)))[ ]*/, '')
|
text = text.replace(/^[ ]*([# ]+|\*|\-|[> ]+|[0-9]+(.|\)))[ ]*/, "");
|
||||||
|
|
||||||
cm.replaceRange(text, {
|
cm.replaceRange(text, {
|
||||||
line: line,
|
line: line,
|
||||||
|
|
Loading…
Reference in a new issue