aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-01-16 14:58:31 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-01-16 14:58:31 -1000
commit0ba75f061e35ca3b04aaf7e911bbcb089b473c2a (patch)
tree82ad2270920dd7cfae2c47de0d17c55eb9a0321f /lib
parentd0e6557e0e73c5e0579da3e3e37b10b1b50b1eb5 (diff)
downloadpatchfoo-0ba75f061e35ca3b04aaf7e911bbcb089b473c2a.tar.gz
patchfoo-0ba75f061e35ca3b04aaf7e911bbcb089b473c2a.zip
Render vote/block reason as markdown
Diffstat (limited to 'lib')
-rw-r--r--lib/render-msg.js4
1 files 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)
})