Skip to content

Commit

Permalink
Render PyPi long description as document (#28272)
Browse files Browse the repository at this point in the history
Co-authored-by: Gusted <[email protected]>
  • Loading branch information
earl-warren and Gusted authored Dec 5, 2023
1 parent f891172 commit 876a0cb
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 876a0cb

Please sign in to comment.