mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 03:02:14 +01:00 
			
		
		
		
	Fix project description rendering for org (#30587)
Fix #30263  Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
		
							parent
							
								
									fe82991547
								
							
						
					
					
						commit
						eb24d973b0
					
				| @ -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) | ||||
| @ -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) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user