mirror of
https://github.com/go-gitea/gitea.git
synced 2025-06-21 21:48:00 +02:00
Working on #211
This commit is contained in:
@ -252,7 +252,10 @@ func Single(ctx *middleware.Context, params martini.Params) {
|
||||
if isTextFile {
|
||||
d, _ := ioutil.ReadAll(dataRc)
|
||||
buf = append(buf, d...)
|
||||
ctx.Data["FileContent"] = string(base.RenderMarkdown(buf, branchLink))
|
||||
if base.IsMarkdownFile(readmeFile.Name()) {
|
||||
buf = base.RenderMarkdown(buf, branchLink)
|
||||
}
|
||||
ctx.Data["FileContent"] = string(buf)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user