repo: use BranchLink instead of TreeLink (#4366)

This commit is contained in:
Unknwon
2017-06-06 15:50:12 -04:00
parent a851b77ac9
commit 455dc072ba

View File

@@ -53,7 +53,7 @@
// Overwrite image method to append proper prefix to the source URL
var renderer = new marked.Renderer();
var context = '{{.TreeLink}}'.replace('/src/', '/raw/');
var context = '{{.BranchLink}}'.replace('/src/', '/raw/');
renderer.image = function (href, title, text) {
return `<img src="${context}/${href}"`
}