diff options
author | Andrew Boyarshin <andrew.boyarshin@gmail.com> | 2017-02-24 21:59:56 +0700 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-02-24 22:59:56 +0800 |
commit | 0602a44b276b009c1f7eb65c589ec284ef4131cf (patch) | |
tree | 8177d22a525e6bd7dcc535b58f1813c19ec9efac /models/mail.go | |
parent | 12e71e570619aa6f0e0289caa0b000158260065b (diff) | |
download | gitea-0602a44b276b009c1f7eb65c589ec284ef4131cf.tar.gz gitea-0602a44b276b009c1f7eb65c589ec284ef4131cf.zip |
Fix URL handling in the whole markdown module, improve test coverage (#1027)
Amended with string to bool change in API SDK.
Signed-off-by: Andrew Boyarshin <andrew.boyarshin@gmail.com>
Diffstat (limited to 'models/mail.go')
-rw-r--r-- | models/mail.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/mail.go b/models/mail.go index e66e316ba0..16e8c9e2ef 100644 --- a/models/mail.go +++ b/models/mail.go @@ -150,7 +150,7 @@ func composeTplData(subject, body, link string) map[string]interface{} { func composeIssueMessage(issue *Issue, doer *User, tplName base.TplName, tos []string, info string) *mailer.Message { subject := issue.mailSubject() - body := string(markdown.RenderSpecialLink([]byte(issue.Content), issue.Repo.HTMLURL(), issue.Repo.ComposeMetas())) + body := string(markdown.RenderString(issue.Content, issue.Repo.HTMLURL(), issue.Repo.ComposeMetas())) data := composeTplData(subject, body, issue.HTMLURL()) data["Doer"] = doer |