Skip to content

Commit

Permalink
Fix project description rendering for org (#30587) (#30599)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang committed Apr 19, 2024
1 parent 2566f6c commit 667427b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions routers/web/org/projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/json"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/templates"
"code.gitea.io/gitea/modules/util"
"code.gitea.io/gitea/modules/web"
shared_user "code.gitea.io/gitea/routers/web/shared/user"
Expand Down Expand Up @@ -100,7 +101,7 @@ func Projects(ctx *context.Context) {
}

for _, project := range projects {
project.RenderedContent = project.Description
project.RenderedContent = string(templates.RenderMarkdownToHtml(ctx, project.Description))
}

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

project.RenderedContent = project.Description
project.RenderedContent = string(templates.RenderMarkdownToHtml(ctx, project.Description))
ctx.Data["LinkedPRs"] = linkedPrsMap
ctx.Data["PageIsViewProjects"] = true
ctx.Data["CanWriteProjects"] = canWriteProjects(ctx)
Expand Down

0 comments on commit 667427b

Please sign in to comment.