diff options
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r-- | lib/render-msg.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js index 6e61108..e25d1b7 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -401,8 +401,9 @@ RenderMsg.prototype.title1 = function (cb) { else self.app.getAbout(self.msg.key, function (err, about) { if (err) return cb(err) - var name = about.name || about.title || about.description - if (name) return cb(null, name) + var name = about.name || about.title + || (about.description && mdInline(about.description)) + if (name) return cb(null, truncate(name, 72)) self.message(function (err, el) { if (err) return cb(err) cb(null, '%' + title(h('div', el).textContent)) |