aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-07 01:55:22 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-07 01:55:22 -0400
commit8c9a0494ecb477a641c07be68a9c0cb8fa661d29 (patch)
tree2dff6d6617e87564ada7630c0942939fd8869563 /routers/api/v1
parente2fe2209057b90e6c78a84b7c66c3395cf100e30 (diff)
downloadgitea-8c9a0494ecb477a641c07be68a9c0cb8fa661d29.tar.gz
gitea-8c9a0494ecb477a641c07be68a9c0cb8fa661d29.zip
Add @ # commit link detect on all markdown render
Diffstat (limited to 'routers/api/v1')
-rw-r--r--routers/api/v1/miscellaneous.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/miscellaneous.go b/routers/api/v1/miscellaneous.go
index 0ff1eb04a0..babdfce9b2 100644
--- a/routers/api/v1/miscellaneous.go
+++ b/routers/api/v1/miscellaneous.go
@@ -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"))),
})
}