Skip to content

Commit

Permalink
Fix project description rendering for org (go-gitea#30587)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang and GiteaBot authored Apr 19, 2024
1 parent fe82991 commit eb24d97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routers/web/org/projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func Projects(ctx *context.Context) {
}

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

err = shared_user.LoadHeaderCount(ctx)
Expand Down Expand Up @@ -372,7 +372,7 @@ func ViewProject(ctx *context.Context) {
}
}

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

0 comments on commit eb24d97

Please sign in to comment.