git ssb

30+

cel / git-ssb-web



Commit c870aa737762e1030c802a7cdddd3a9c494d279b

Handle #fragments in markdown links

cel committed on 10/19/2016, 1:34:14 AM
Parent: 5b26576be7305fde8067815b930a8f0ff182f966

Files changed

lib/markdown.jschanged
lib/markdown.jsView
@@ -11,9 +11,9 @@
1111 return u.encodeLink(href)
1212 if (/^[0-9a-f]{40}$/.test(href) && this.options.repo)
1313 return u.encodeLink([this.options.repo.id, 'commit', href])
1414 if (this.options.repo && this.options.rev && this.options.path
15- && !url.parse(href).host)
15 + && !url.parse(href).host && href[0] !== '#')
1616 return path.join('/', encodeURIComponent(this.options.repo.id),
1717 'blob', this.options.rev, this.options.path.join('/'), href)
1818 return href
1919 }

Built with git-ssb-web