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 91bd2ab..1777c88 100644
--- a/lib/render.js
+++ b/lib/render.js
@@ -41,6 +41,7 @@ MdRenderer.prototype.urltransform = function (href) {
MdRenderer.prototype.image = function (ref, title, text) {
if (ref[0] !== '&') return this.link(ref, title, text)
var alt = this.render.getImageAlt(ref, text)
+ if (alt.length > 60) alt = alt.substr(0, 60) + '…'
return (/^video:/.test(text) ? h('video', {
controls: 'controls',
src: this.render.toUrl(ref),