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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user