From 6c20007fa0ba140838c722bb7b06107d20902e51 Mon Sep 17 00:00:00 2001 From: cel Date: Mon, 26 Nov 2018 22:10:27 -1000 Subject: Fix double-HTML-encoded image titles --- lib/render.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/render.js') diff --git a/lib/render.js b/lib/render.js index deaf061..aade2f2 100644 --- a/lib/render.js +++ b/lib/render.js @@ -31,16 +31,16 @@ MdRenderer.prototype.image = function (ref, title, text) { controls: 'controls', src: this.render.toUrl(ref), alt: alt, - title: title || undefined + title: u.unescapeHTML(title) || undefined }) : /^audio:/.test(text) ? h('audio', { controls: 'controls', src: this.render.toUrl(ref), alt: alt, - title: title || undefined + title: u.unescapeHTML(title) || undefined }) : h('img', { src: this.render.imageUrl(ref), alt: alt, - title: title || undefined + title: u.unescapeHTML(title) || undefined })).outerHTML } -- cgit v1.2.3