diff options
Diffstat (limited to 'models/repo/repo.go')
-rw-r--r-- | models/repo/repo.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/models/repo/repo.go b/models/repo/repo.go index 5108231cd8..a78d287315 100644 --- a/models/repo/repo.go +++ b/models/repo/repo.go @@ -485,8 +485,9 @@ func (repo *Repository) CanEnableEditor() bool { } // DescriptionHTML does special handles to description and return HTML string. -func (repo *Repository) DescriptionHTML() template.HTML { +func (repo *Repository) DescriptionHTML(ctx context.Context) template.HTML { desc, err := markup.RenderDescriptionHTML(&markup.RenderContext{ + Ctx: ctx, URLPrefix: repo.HTMLURL(), Metas: repo.ComposeMetas(), }, repo.Description) |