diff --git a/src/js/simplemde.js b/src/js/simplemde.js index 7d79233..fb24685 100644 --- a/src/js/simplemde.js +++ b/src/js/simplemde.js @@ -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,