diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-07 01:55:22 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-07 01:55:22 -0400 |
commit | 8c9a0494ecb477a641c07be68a9c0cb8fa661d29 (patch) | |
tree | 2dff6d6617e87564ada7630c0942939fd8869563 /routers/api/v1 | |
parent | e2fe2209057b90e6c78a84b7c66c3395cf100e30 (diff) | |
download | gitea-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.go | 2 |
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"))), }) } |