diff options
author | Andy Hochhaus <hochhaus@users.noreply.github.com> | 2019-02-20 16:54:27 -0600 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2019-02-20 17:54:27 -0500 |
commit | 9ebd62f6765eb86e74f8c087c67d137c2e74ab35 (patch) | |
tree | d15611bc8aeab6ce8ecfdb64bbe7534ad48bcf5d /pkg/mailer | |
parent | 2c3e2b701e012294d457937e6bfbffd63dd8ae4f (diff) |
pkg/mailer/mail: render markdown in issue related emails (#5629)
Reference #4552
Diffstat (limited to 'pkg/mailer')
-rw-r--r-- | pkg/mailer/mail.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/mailer/mail.go b/pkg/mailer/mail.go index 64f900d3..a39d3c57 100644 --- a/pkg/mailer/mail.go +++ b/pkg/mailer/mail.go @@ -173,7 +173,7 @@ func composeTplData(subject, body, link string) map[string]interface{} { func composeIssueMessage(issue Issue, repo Repository, doer User, tplName string, tos []string, info string) *Message { subject := issue.MailSubject() - body := string(markup.RenderSpecialLink([]byte(issue.Content()), repo.HTMLURL(), repo.ComposeMetas())) + body := string(markup.Markdown([]byte(issue.Content()), repo.HTMLURL(), repo.ComposeMetas())) data := composeTplData(subject, body, issue.HTMLURL()) data["Doer"] = doer content, err := mailRender.HTMLString(tplName, data) |