From 0ba75f061e35ca3b04aaf7e911bbcb089b473c2a Mon Sep 17 00:00:00 2001 From: cel Date: Wed, 16 Jan 2019 14:58:31 -1000 Subject: Render vote/block reason as markdown --- lib/render-msg.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/render-msg.js b/lib/render-msg.js index ad66c81..e40934e 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -416,7 +416,7 @@ RenderMsg.prototype.vote = function (cb) { self.wrapMini([ v.value > 0 ? 'dug' : v.value < 0 ? 'downvoted' : 'undug', ' ', a, - v.reason ? [' as ', h('q', String(v.reason))] : '' + v.reason ? [' as ', h('q', {innerHTML: u.unwrapP(self.render.markdown(v.reason))})] : '' ], cb) }) } @@ -724,7 +724,7 @@ RenderMsg.prototype.contact = function (cb) { h('code', String(self.c.note)) ] : '', self.c.reason ? [' because ', - h('q', String(self.c.reason)) + h('q', {innerHTML: u.unwrapP(self.render.markdown(self.c.reason))}) ] : '' ], cb) }) -- cgit v1.2.3