diff --git a/app/assets/javascripts/discourse/views/modal/upload_selector_view.js b/app/assets/javascripts/discourse/views/modal/upload_selector_view.js index 52e2b8fe66c..b2f0e2edfac 100644 --- a/app/assets/javascripts/discourse/views/modal/upload_selector_view.js +++ b/app/assets/javascripts/discourse/views/modal/upload_selector_view.js @@ -51,7 +51,7 @@ Discourse.UploadSelectorView = Discourse.ModalBodyView.extend({ var imageLink = $('#link-input').val(); var composerView = this.get('controller.composerView'); if (this.get("controller.showMore") && imageLink.length > 3) { - composerView.addMarkdown("\n \n"); + composerView.addMarkdown("[![](" + imageUrl +")](" + imageLink + ")"); } else { composerView.addMarkdown(imageUrl); }