File tree 1 file changed +3
-2
lines changed 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import (
19
19
"code.gitea.io/gitea/modules/context"
20
20
"code.gitea.io/gitea/modules/json"
21
21
"code.gitea.io/gitea/modules/setting"
22
+ "code.gitea.io/gitea/modules/templates"
22
23
"code.gitea.io/gitea/modules/util"
23
24
"code.gitea.io/gitea/modules/web"
24
25
shared_user "code.gitea.io/gitea/routers/web/shared/user"
@@ -100,7 +101,7 @@ func Projects(ctx *context.Context) {
100
101
}
101
102
102
103
for _ , project := range projects {
103
- project .RenderedContent = project .Description
104
+ project .RenderedContent = string ( templates . RenderMarkdownToHtml ( ctx , project .Description ))
104
105
}
105
106
106
107
err = shared_user .LoadHeaderCount (ctx )
@@ -391,7 +392,7 @@ func ViewProject(ctx *context.Context) {
391
392
}
392
393
}
393
394
394
- project .RenderedContent = project .Description
395
+ project .RenderedContent = string ( templates . RenderMarkdownToHtml ( ctx , project .Description ))
395
396
ctx .Data ["LinkedPRs" ] = linkedPrsMap
396
397
ctx .Data ["PageIsViewProjects" ] = true
397
398
ctx .Data ["CanWriteProjects" ] = canWriteProjects (ctx )
You can’t perform that action at this time.
0 commit comments