diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-06-23 18:30:38 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-06-27 16:27:15 -1000 |
commit | 08219f99c20f516629b2be6d1996a21fdcb42731 (patch) | |
tree | 3ccc8f023cb342ae753d9690bc38592befdf5cdf /lib/render-msg.js | |
parent | b0cddb46f0d273976872352c328d5c849408334a (diff) | |
download | patchfoo-08219f99c20f516629b2be6d1996a21fdcb42731.tar.gz patchfoo-08219f99c20f516629b2be6d1996a21fdcb42731.zip |
npm-publish: render markdown in description; add feed sigil
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r-- | lib/render-msg.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js index 65f1ca0..17b9090 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -902,7 +902,9 @@ RenderMsg.prototype.npmPublish = function (cb) { return [h('b', version), distTag ? [' (', h('i', distTag), ')'] : ''] }), ', ') ), - pkgDescription ? h('div', h('q', self.linkify(pkgDescription))) : '', + pkgDescription ? h('div', + // TODO: make mdInline use custom emojis + h('q', {innerHTML: unwrapP(render.markdown(pkgDescription))})) : '', prevLinks.length ? h('div', 'previous: ', prevLinks) : '', pkgReadme && pkgReadme !== singleReadme ? h('blockquote', {innerHTML: render.markdown(pkgReadme)}) : '', @@ -923,7 +925,7 @@ RenderMsg.prototype.npmPublish = function (cb) { keywords.length ? h('div', 'keywords: ', keywords.join(', ')) : '', size ? h('div', 'size: ', render.formatSize(size)) : '', description && description !== pkgDescription ? - h('div', h('q', self.linkify(description))) : '', + h('div', h('q', {innerHTML: render.markdown(description)})) : '', readme ? h('blockquote', {innerHTML: render.markdown(readme)}) : '' ] }) |