diff options
author | Israel Madueme <purelogiq@gmail.com> | 2018-08-10 14:57:01 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-08-10 14:57:01 +0200 |
commit | fd850e00db835d2b84c59014c3b1021fea2294fc (patch) | |
tree | b5529f9bf45bb2b8f66b19714d215f1ca6c06c94 /template/en/default/email | |
parent | 5a43b27f7940be9697f312c550fa2de11a9e14d7 (diff) | |
download | bugzilla-fd850e00db835d2b84c59014c3b1021fea2294fc.tar.gz bugzilla-fd850e00db835d2b84c59014c3b1021fea2294fc.tar.xz |
Bug 1456878 - Support markdown comments
Diffstat (limited to 'template/en/default/email')
-rw-r--r-- | template/en/default/email/bugmail.html.tmpl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/template/en/default/email/bugmail.html.tmpl b/template/en/default/email/bugmail.html.tmpl index 8b567b691..cdcb3d13d 100644 --- a/template/en/default/email/bugmail.html.tmpl +++ b/template/en/default/email/bugmail.html.tmpl @@ -38,7 +38,12 @@ on [% "$terms.bug $bug.id" FILTER bug_link(bug, { full_url => 1, user => to_user }) FILTER none %] from [% INCLUDE global/user.html.tmpl user = to_user, who = comment.author %]</b> [% END %] - <pre>[% comment.body_full({ wrap => 1 }) FILTER quoteUrls(bug, comment, to_user) %]</pre> + [% IF comment.is_markdown %] + [% comment_tag = 'div' %] + [% ELSE %] + [% comment_tag = 'pre' %] + [% END %] + <[% comment_tag FILTER none %]>[% comment.body_full({ wrap => 1 }) FILTER renderComment(bug, comment) %]</[% comment_tag FILTER none %]> </div> [% END %] </p> |