From e4bf56829d8e46d3f962f5915eaf310d8a67f4fa Mon Sep 17 00:00:00 2001 From: cel Date: Sat, 18 Aug 2018 15:06:29 -0700 Subject: Render non-blob image markdown as link for compatibility with Patchwork (re: %XhyQZvVmfFVMjwYyoX13VZFBkzWJ63o6w9YSIjMWI88=.sha256) and to prevent remote audio/video embed --- lib/render.js | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/render.js b/lib/render.js index 0a20b10..045cf86 100644 --- a/lib/render.js +++ b/lib/render.js @@ -25,6 +25,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) return (/^video:/.test(text) ? h('video', { controls: 'controls', -- cgit v1.2.3