Fix and refactor markdown rendering (#32522)

This commit is contained in:
wxiaoguang authored and GitHub committed 2024-11-16 08:41:44 +00:00
1 parent e546480d0a
commit 5eebe1dc5f
27 files changed
+289 -278

No files matched your search

+1 -1
View File
@@ -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 {