Handle bare links

This commit is contained in:
cel
2016-12-15 13:42:12 -08:00
parent 57449ef94a
commit b9a0a635c0
+2 -1
View File
@@ -32,7 +32,8 @@ MdRenderer.prototype.urltransform = function (href) {
case '@': return this.opts.feed_base + href case '@': return this.opts.feed_base + href
case '&': return this.opts.blob_base + href case '&': return this.opts.blob_base + href
} }
return marked.Renderer.prototype.urltransform.call(this, href) if (href.indexOf('javascript:') === 0) return false
return href
} }
MdRenderer.prototype.image = function (href, title, text) { MdRenderer.prototype.image = function (href, title, text) {