aboutsummaryrefslogtreecommitdiff
path: root/lib/render.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-06-23 18:30:38 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-06-27 16:27:15 -1000
commit08219f99c20f516629b2be6d1996a21fdcb42731 (patch)
tree3ccc8f023cb342ae753d9690bc38592befdf5cdf /lib/render.js
parentb0cddb46f0d273976872352c328d5c849408334a (diff)
downloadpatchfoo-08219f99c20f516629b2be6d1996a21fdcb42731.tar.gz
patchfoo-08219f99c20f516629b2be6d1996a21fdcb42731.zip
npm-publish: render markdown in description; add feed sigil
Diffstat (limited to 'lib/render.js')
-rw-r--r--lib/render.js1
1 files changed, 1 insertions, 0 deletions
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)