Commit b9a0a635c01b86e32b2ffdc4e83a8115db91d9ad
Handle bare links
cel committed on 12/15/2016, 9:42:12 PMParent: 57449ef94aae666b453579c78a553613cb1e4c8a
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -31,9 +31,10 @@ | ||
31 | 31 … | case '%': return this.opts.msg_base + href |
32 | 32 … | case '@': return this.opts.feed_base + href |
33 | 33 … | case '&': return this.opts.blob_base + href |
34 | 34 … | } |
35 | - return marked.Renderer.prototype.urltransform.call(this, href) | |
35 … | + if (href.indexOf('javascript:') === 0) return false | |
36 … | + return href | |
36 | 37 … | } |
37 | 38 … | |
38 | 39 … | MdRenderer.prototype.image = function (href, title, text) { |
39 | 40 … | return '<img src="' + this.opts.img_base + escape(href) + '"' |
Built with git-ssb-web