aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/render.js1
1 files changed, 1 insertions, 0 deletions
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) {