diff options
author | Earl Warren <109468362+earl-warren@users.noreply.github.com> | 2023-12-05 16:02:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-05 15:02:01 +0000 |
commit | 876a0cb3d652f42545abdb33dc4fd71a7c3343bf (patch) | |
tree | 6ee26b90a36565d888b8a9238645f879c10c26a2 | |
parent | f891172ef4163bf75ebe00a9e76a4ab60f0d3d4a (diff) | |
download | gitea-876a0cb3d652f42545abdb33dc4fd71a7c3343bf.tar.gz gitea-876a0cb3d652f42545abdb33dc4fd71a7c3343bf.zip |
Render PyPi long description as document (#28272)
Co-authored-by: Gusted <postmaster@gusted.xyz>
-rw-r--r-- | modules/templates/util_render.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/templates/util_render.go b/modules/templates/util_render.go index 84c3a1587a..8621a371bd 100644 --- a/modules/templates/util_render.go +++ b/modules/templates/util_render.go @@ -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) |