Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
fidian committed Mar 14, 2017
2 parents d0e6850 + 47d285f commit bfdc8d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ _.extend(Renderer.prototype, rawRenderer.prototype, {
}
, link: function(href, title, text) {
var arr = [href]
if (title) {
arr.unshift(title)
if (title || text) {
arr.unshift(title || text)
}
return '[' + arr.join('|') + ']'
}
Expand Down

0 comments on commit bfdc8d2

Please sign in to comment.