git ssb

9+

cel / ssb-viewer



Commit b9a0a635c01b86e32b2ffdc4e83a8115db91d9ad

Handle bare links

cel committed on 12/15/2016, 9:42:12 PM
Parent: 57449ef94aae666b453579c78a553613cb1e4c8a

Files changed

index.jschanged
index.jsView
@@ -31,9 +31,10 @@
3131 case '%': return this.opts.msg_base + href
3232 case '@': return this.opts.feed_base + href
3333 case '&': return this.opts.blob_base + href
3434 }
35- return marked.Renderer.prototype.urltransform.call(this, href)
35 + if (href.indexOf('javascript:') === 0) return false
36 + return href
3637 }
3738
3839 MdRenderer.prototype.image = function (href, title, text) {
3940 return '<img src="' + this.opts.img_base + escape(href) + '"'

Built with git-ssb-web