mirror of
https://github.com/gogs/gogs.git
synced 2025-10-07 23:21:48 +00:00
repo: use BranchLink instead of TreeLink (#4366)
This commit is contained in:
parent
a851b77ac9
commit
455dc072ba
@ -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}"`
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user