mirror of
https://github.com/go-gitea/gitea.git
synced 2025-04-20 16:38:44 +03:00
Render PyPi long description as document (#28272)
Co-authored-by: Gusted <postmaster@gusted.xyz>
This commit is contained in:
@ -230,6 +230,7 @@ func RenderMarkdownToHtml(ctx context.Context, input string) template.HTML { //n
|
|||||||
output, err := markdown.RenderString(&markup.RenderContext{
|
output, err := markdown.RenderString(&markup.RenderContext{
|
||||||
Ctx: ctx,
|
Ctx: ctx,
|
||||||
URLPrefix: setting.AppSubURL,
|
URLPrefix: setting.AppSubURL,
|
||||||
|
Metas: map[string]string{"mode": "document"},
|
||||||
}, input)
|
}, input)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("RenderString: %v", err)
|
log.Error("RenderString: %v", err)
|
||||||
|
Reference in New Issue
Block a user