mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 01:33:09 +00:00
Render PyPi long description as document (#28272)
Co-authored-by: Gusted <postmaster@gusted.xyz>
This commit is contained in:
parent
f891172ef4
commit
876a0cb3d6
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue