Skip to content

Commit 876a0cb

Browse files
earl-warrenGusted
andauthored
Render PyPi long description as document (#28272)
Co-authored-by: Gusted <postmaster@gusted.xyz>
1 parent f891172 commit 876a0cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/templates/util_render.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ func RenderMarkdownToHtml(ctx context.Context, input string) template.HTML { //n
230230
output, err := markdown.RenderString(&markup.RenderContext{
231231
Ctx: ctx,
232232
URLPrefix: setting.AppSubURL,
233+
Metas: map[string]string{"mode": "document"},
233234
}, input)
234235
if err != nil {
235236
log.Error("RenderString: %v", err)

0 commit comments

Comments
 (0)