mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-20 17:12:25 +00:00 
			
		
		
		
	Fix project description rendering for org (#30587)
Fix #30263  Co-authored-by: Giteabot <teabot@gitea.io> (cherry picked from commit eb24d973b036e4dddf505d8c12e905ecb1a688f9)
This commit is contained in:
		
					parent
					
						
							
								e7a484e401
							
						
					
				
			
			
				commit
				
					
						abeea42751
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue