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

+2 -3
View File
@@ -289,9 +289,8 @@ func renderViewPage(ctx *context.Context) (*git.Repository, *git.TreeEntry) {
}
rctx := &markup.RenderContext{
Ctx: ctx,
ContentMode: markup.RenderContentAsWiki,
Metas: ctx.Repo.Repository.ComposeDocumentMetas(ctx),
Ctx: ctx,
Metas: ctx.Repo.Repository.ComposeWikiMetas(ctx),
Links: markup.Links{
Base: ctx.Repo.RepoLink,
},