diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/render.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/render.js b/lib/render.js index 9c37d9c..3a39ccb 100644 --- a/lib/render.js +++ b/lib/render.js @@ -37,12 +37,12 @@ MdRenderer.prototype.image = function (href, title, text) { MdRenderer.prototype.link = function(href, title, text) { href = this.urltransform(href) var name = href && /^\/(&|%26)/.test(href) && (title || text) - if (name) href += '?name=' + encodeURIComponent(name) return '<a' + (href !== false ? ' href="' + href + '"' : ' class="bad"') + (title ? ' title="' + title + '"' : '') + + (name ? ' download="' + encodeURIComponent(name) + '"' : '') + '>' + text + '</a>' }; |