forked from forgejo/forgejo
Add @ # commit link detect on all markdown render
This commit is contained in:
parent
e2fe220905
commit
8c9a0494ec
4 changed files with 41 additions and 16 deletions
|
@ -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"))),
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue