mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-03 15:07:12 +02:00
Add @ # commit link detect on all markdown render
This commit is contained in:
1 parent
e2fe220905
commit
8c9a0494ec
4 files changed
+41
-16
No files matched your search
@@ -13,6 +13,6 @@ func Markdown(ctx *middleware.Context) {
|
||||
content := ctx.Query("content")
|
||||
ctx.Render.JSON(200, map[string]interface{}{
|
||||
"ok": true,
|
||||
"content": string(base.RenderMarkdown([]byte(content), "")),
|
||||
"content": string(base.RenderMarkdown([]byte(content), ctx.Query("repoLink"))),
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user