From d6732a0a25115dff558a4218e8c7a96ce9378b73 Mon Sep 17 00:00:00 2001 From: cel Date: Fri, 17 Mar 2017 13:01:38 -0400 Subject: render description in message as markdown --- lib/render-msg.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/render-msg.js b/lib/render-msg.js index 703f5cd..645e6b9 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -343,7 +343,8 @@ RenderMsg.prototype.about = function (cb) { ['identifies ', h('a', {href: this.toUrl(this.c.about)}, truncate(this.c.about, 10))], ' as ', this.c.name ? [h('ins', this.c.name), ' '] : '', - this.c.description ? h('div', {innerHTML: this.c.description}) : h('br'), + this.c.description ? h('div', + {innerHTML: this.render.markdown(this.c.description)}) : h('br'), img ? h('a', {href: this.toUrl(img)}, h('img.ssb-avatar-image', { src: this.render.imageUrl(img), -- cgit v1.2.3