From fc8772e0891532f8ed7117f9d253c59aa170a173 Mon Sep 17 00:00:00 2001 From: cel Date: Mon, 24 Sep 2018 19:29:19 -1000 Subject: Image alt text: note mime/type if lacks extension --- lib/render.js | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/render.js b/lib/render.js index 32085e4..15d7783 100644 --- a/lib/render.js +++ b/lib/render.js @@ -182,6 +182,7 @@ Render.prototype.getImageAlt = function (id, fallback) { var name = u.unescapeHTML(link.name || fallback) return name + (link.size != null ? ' (' + this.formatSize(link.size) + ')' : '') + + (link.type && !/\.\S+$/.test(name) ? ' [' + link.type + ']' : '') } Render.prototype.formatSize = function (size) { -- cgit v1.2.3