From e90c21e476f4116f6ea58ba854766583cda3c531 Mon Sep 17 00:00:00 2001 From: cel Date: Thu, 9 Mar 2017 21:09:24 -0500 Subject: Prefer image filename for blob download name --- lib/render.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/render.js b/lib/render.js index 2762484..7e24d29 100644 --- a/lib/render.js +++ b/lib/render.js @@ -25,7 +25,7 @@ MdRenderer.prototype.urltransform = function (href) { MdRenderer.prototype.image = function (href, title, text) { href = this.render.imageUrl(href) - var name = title || text + var name = text || title if (name) href += '?name=' + encodeURIComponent(name) return h('img', { src: href, -- cgit v1.2.3