diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-11-16 16:41:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-16 08:41:44 +0000 |
commit | 5eebe1dc5fb29a162c51d050396fce7b14e47f4e (patch) | |
tree | 900ce606dedcc5722ee78429bbbc8eba3466b680 /routers/web/shared | |
parent | e546480d0a2bbd9fcf897d7506a1efe3fa44cef3 (diff) | |
download | gitea-5eebe1dc5fb29a162c51d050396fce7b14e47f4e.tar.gz gitea-5eebe1dc5fb29a162c51d050396fce7b14e47f4e.zip |
Fix and refactor markdown rendering (#32522)
Diffstat (limited to 'routers/web/shared')
-rw-r--r-- | routers/web/shared/user/header.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/shared/user/header.go b/routers/web/shared/user/header.go index ef111cff80..9467b0986b 100644 --- a/routers/web/shared/user/header.go +++ b/routers/web/shared/user/header.go @@ -50,7 +50,7 @@ func PrepareContextForProfileBigAvatar(ctx *context.Context) { ctx.Data["OpenIDs"] = openIDs if len(ctx.ContextUser.Description) != 0 { content, err := markdown.RenderString(&markup.RenderContext{ - Metas: map[string]string{"mode": "document"}, + Metas: markup.ComposeSimpleDocumentMetas(), Ctx: ctx, }, ctx.ContextUser.Description) if err != nil { |