1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Add @ # commit link detect on all markdown render

This commit is contained in:
Unknown
2014-04-07 01:55:22 -04:00
parent e2fe220905
commit 8c9a0494ec
4 changed files with 41 additions and 16 deletions

View File

@@ -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"))),
})
}