diff --git a/src/js/simplemde.js b/src/js/simplemde.js index aead965..06d89ef 100644 --- a/src/js/simplemde.js +++ b/src/js/simplemde.js @@ -203,7 +203,7 @@ function drawLink(editor) { function drawImage(editor) { var cm = editor.codemirror; var stat = getState(cm); - _replaceSelection(cm, stat.image, '![](http://', ')'); + _replaceSelection(cm, stat.image, '![', '](http://)'); }