From 08c2a6ad2fc9c48e17283dc2e27d870918e35983 Mon Sep 17 00:00:00 2001 From: Dave Snider Date: Fri, 21 Mar 2014 16:38:35 -0700 Subject: [PATCH] markdown images --- app/components/markdown-editor.js | 2 +- app/templates/wh/content/type/index.hbs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/markdown-editor.js b/app/components/markdown-editor.js index 86ca5865..c11675c4 100644 --- a/app/components/markdown-editor.js +++ b/app/components/markdown-editor.js @@ -47,7 +47,7 @@ export default Ember.Component.extend({ url = 'http://' + window.ENV.siteDNS + url; } - this.$('textarea').val(this.$('textarea').val() + '\n '); + this.$('textarea').val(this.$('textarea').val() + '\n ![](' + url + ')'); } } diff --git a/app/templates/wh/content/type/index.hbs b/app/templates/wh/content/type/index.hbs index 46bebcab..7c1cd749 100644 --- a/app/templates/wh/content/type/index.hbs +++ b/app/templates/wh/content/type/index.hbs @@ -6,7 +6,7 @@
- +
Display