aboutsummaryrefslogtreecommitdiff
path: root/lib/render-msg.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-03-17 13:01:38 -0400
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-03-18 11:23:17 -0400
commitd6732a0a25115dff558a4218e8c7a96ce9378b73 (patch)
tree42e01dc6efc68266ebff1852a3e5b76126ba5e5b /lib/render-msg.js
parentdfe147a6e931b2aab13e7336ba4c03e52d502966 (diff)
downloadpatchfoo-d6732a0a25115dff558a4218e8c7a96ce9378b73.tar.gz
patchfoo-d6732a0a25115dff558a4218e8c7a96ce9378b73.zip
render description in message as markdown
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r--lib/render-msg.js3
1 files changed, 2 insertions, 1 deletions
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),