Bug 330707: Add optional support for MarkDown

r=dkl,a=sgreen


git-svn-id: svn://10.0.0.236/trunk@265524 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzrmirror%bugzilla.org
2014-08-28 17:30:55 +00:00
parent a337d8ca24
commit daef60d81c
27 changed files with 626 additions and 17 deletions

View File

@@ -331,7 +331,9 @@ sub render_comment {
Bugzilla->switch_to_shadow_db();
my $bug = $params->{id} ? Bugzilla::Bug->check($params->{id}) : undef;
my $tmpl = '[% text FILTER quoteUrls(bug) %]';
my $markdown = $params->{markdown} ? 1 : 0;
my $tmpl = $markdown ? '[% text FILTER markdown(bug, { is_markdown => 1 }) %]' : '[% text FILTER markdown(bug) %]';
my $html;
my $template = Bugzilla->template;
$template->process(