Skip to content

Commit eb24d97

Browse files
wxiaoguangGiteaBot
andauthored
Fix project description rendering for org (#30587)
Fix #30263 ![image](https://github.com/go-gitea/gitea/assets/2114189/41cabe6c-f94a-4874-a26f-d01bb89bb28c) Co-authored-by: Giteabot <[email protected]>
1 parent fe82991 commit eb24d97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/web/org/projects.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func Projects(ctx *context.Context) {
104104
}
105105

106106
for _, project := range projects {
107-
project.RenderedContent = templates.SanitizeHTML(project.Description) // FIXME: is it right? why not render?
107+
project.RenderedContent = templates.RenderMarkdownToHtml(ctx, project.Description)
108108
}
109109

110110
err = shared_user.LoadHeaderCount(ctx)
@@ -372,7 +372,7 @@ func ViewProject(ctx *context.Context) {
372372
}
373373
}
374374

375-
project.RenderedContent = templates.SanitizeHTML(project.Description) // FIXME: is it right? why not render?
375+
project.RenderedContent = templates.RenderMarkdownToHtml(ctx, project.Description)
376376
ctx.Data["LinkedPRs"] = linkedPrsMap
377377
ctx.Data["PageIsViewProjects"] = true
378378
ctx.Data["CanWriteProjects"] = canWriteProjects(ctx)

0 commit comments

Comments
 (0)