aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/render-msg.js6
-rw-r--r--lib/render.js1
2 files changed, 5 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)}) : ''
]
})
diff --git a/lib/render.js b/lib/render.js
index 441ee8a..ee8ce01 100644
--- a/lib/render.js
+++ b/lib/render.js
@@ -359,6 +359,7 @@ Render.prototype.npmAuthorLink = function (author) {
if (!name && email) name = email, email = null
var feed = u.isRef(url) && url[0] === '@' && url
if (feed && name) title = this.app.getNameSync(feed)
+ if (feed && name && name[0] != '@') name = '@' + name
if (feed && !name) name = this.app.getNameSync(feed) // TODO: async
if (url && !name) name = url
var secondaryLink = email && h('a', {href: this.toUrl('mailto:' + email)}, email)