diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2018-05-19 15:45:59 -0400 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2018-05-19 15:45:59 -0400 |
commit | 2c9aed94d829091ae6cb400978eba1e5d72b9040 (patch) | |
tree | ca7d3b9159a6e166c9319bcfdb3dc9cdf7985e87 | |
parent | e9817ef22f3693e8487429395c395e54cf0782fc (diff) | |
download | patchfoo-2c9aed94d829091ae6cb400978eba1e5d72b9040.tar.gz patchfoo-2c9aed94d829091ae6cb400978eba1e5d72b9040.zip |
Render markdown in mutual/credit memo
-rw-r--r-- | lib/render-msg.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js index daa61b0..50dc6de 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -1005,7 +1005,9 @@ RenderMsg.prototype.mutualCredit = function (cb) { currency[0] === '#' ? h('a', {href: self.toUrl(currency)}, currency) : h('ins', currency), - self.c.memo ? [' for ', h('q', String(self.c.memo))] : '' + self.c.memo ? [' for ', + h('q', {innerHTML: unwrapP(self.render.markdown(self.c.memo))}) + ] : '' ], cb) }) } |