mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-23 19:47:07 +09:00
Working on #211
This commit is contained in:
1 parent
6696610aea
commit
9085dfa426
2 files changed
+6
-3
No files matched your search
@@ -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