Skip to content

Commit

Permalink
Render PyPi long description as document (go-gitea#28272)
Browse files Browse the repository at this point in the history
Co-authored-by: Gusted <[email protected]>
  • Loading branch information
2 people authored and silverwind committed Feb 20, 2024
1 parent ada81f7 commit be72fb6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/templates/util_render.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ func RenderMarkdownToHtml(ctx context.Context, input string) template.HTML { //n
output, err := markdown.RenderString(&markup.RenderContext{
Ctx: ctx,
URLPrefix: setting.AppSubURL,
Metas: map[string]string{"mode": "document"},
}, input)
if err != nil {
log.Error("RenderString: %v", err)
Expand Down

0 comments on commit be72fb6

Please sign in to comment.