\n\n";
- }egmx;
-
- return $text;
-}
-
-sub _EncodeCode {
- my ($self, $text) = @_;
-
- # We need to unescape the escaped HTML characters in code blocks.
- # These are the reverse of the escapings done in Bugzilla::Util::html_quote()
- $text =~ s/<//g;
- $text =~ s/"/"/g;
- $text =~ s/@/@/g;
- # '&' substitution must be the last one, otherwise a literal like '>'
- # will turn to '>' because '&' is already changed to '&' in Bugzilla::Util::html_quote().
- # In other words, html_quote() will change '>' to '>' and then we will
- # change '>' -> '>' -> '>' if we write this substitution as the first one.
- $text =~ s/&/&/g;
- $text =~ s{ \1 }{$1}xmgi;
- $text = $self->SUPER::_EncodeCode($text);
- $text =~ s/~/$g_escape_table{'~'}/go;
- # Encode '<' to prevent URLs from getting linkified in code spans
- $text =~ s/</$g_escape_table{'<'}/go;
-
- return $text;
-}
-
-sub _EncodeBackslashEscapes {
- my ($self, $text) = @_;
-
- $text = $self->SUPER::_EncodeBackslashEscapes($text);
- $text =~ s/\\~/$g_escape_table{'~'}/go;
-
- return $text;
-}
-
-sub _UnescapeSpecialChars {
- my ($self, $text) = @_;
-
- $text = $self->SUPER::_UnescapeSpecialChars($text);
- $text =~ s/$g_escape_table{'~'}/~/go;
- $text =~ s/$g_escape_table{'<'}/</go;
-
- return $text;
-}
-
-# Check if the passed string is of the form multiple_underscores_in_a_word.
-# To check that, we first need to make sure that the string does not contain
-# any white-space. Then, if the string is composed of non-space chunks which
-# are bound together with underscores, the string has the desired form.
-sub _has_multiple_underscores {
- my $string = shift;
- return 0 unless defined($string) && length($string);
- return 0 if $string =~ /[\t\s]+/;
- return 1 if scalar (split /_/, $string) > 1;
- return 0;
-}
-
-1;
-
-__END__
-
-=head1 NAME
-
-Bugzilla::Markdown - Generates HTML output from structured plain-text input.
-
-=head1 SYNOPSIS
-
- use Bugzilla::Markdown;
-
- my $markdown = Bugzilla::Markdown->new();
- print $markdown->markdown($text);
-
-=head1 DESCRIPTION
-
-Bugzilla::Markdown implements a Markdown engine that produces
-an HTML-based output from a given plain-text input.
-
-The majority of the implementation is done by C
-CPAN module. It also applies the linkifications done in L
-to the input resulting in an output which is a combination of both Markdown
-structures and those defined by Bugzilla itself.
-
-=head2 Accessors
-
-=over
-
-=item C
-
-C Produces an HTML-based output string based on the structures
-and format defined in the given plain-text input.
-
-=over
-
-=item B
-
-=over
-
-=item C
-
-C A plain-text string which includes Markdown structures.
-
-=back
-
-=back
-
-=back
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index 7ce1be72b..bb8ff3b74 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -148,11 +148,10 @@ sub get_format {
# If you want to modify this routine, read the comments carefully
sub quoteUrls {
- my ($text, $bug, $comment, $user, $bug_link_func, $for_markdown) = @_;
+ my ($text, $bug, $comment, $user, $bug_link_func) = @_;
return $text unless $text;
$user ||= Bugzilla->user;
$bug_link_func ||= \&get_bug_link;
- $for_markdown ||= 0;
# We use /g for speed, but uris can have other things inside them
# (http://foo/bug#3 for example). Filtering that out filters valid
@@ -223,11 +222,10 @@ sub quoteUrls {
$text = html_quote($text);
- unless ($for_markdown) {
- # Color quoted text
- $text =~ s~^(>.+)$~$1~mg;
- $text =~ s~\n~\n~g;
- }
+ # Color quoted text
+ $text =~ s~^(>.+)$~$1~mg;
+ $text =~ s~\n~\n~g;
+
# mailto:
# Use | so that $1 is defined regardless
# @ is the encoded '@' character.
@@ -858,24 +856,6 @@ sub create {
1
],
- markdown => [ sub {
- my ($context, $bug, $comment, $user) = @_;
- return sub {
- my $text = shift;
- return unless $text;
-
- if (Bugzilla->feature('markdown')
- && ((ref($comment) eq 'HASH' && $comment->{is_markdown})
- || (ref($comment) eq 'Bugzilla::Comment' && $comment->is_markdown)))
- {
- return Bugzilla->markdown->markdown($text);
- }
- return quoteUrls($text, $bug, $comment, $user);
- };
- },
- 1
- ],
-
bug_link => [ sub {
my ($context, $bug, $options) = @_;
return sub {
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index fa2674366..acedc65f2 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -632,14 +632,6 @@ sub is_bug_ignored {
return (grep {$_->{'id'} == $bug_id} @{$self->bugs_ignored}) ? 1 : 0;
}
-sub use_markdown {
- my ($self, $comment) = @_;
- return Bugzilla->feature('markdown')
- && $self->settings->{use_markdown}->{is_enabled}
- && $self->settings->{use_markdown}->{value} eq 'on'
- && (!defined $comment || $comment->is_markdown);
-}
-
##########################
# Saved Recent Bug Lists #
##########################
@@ -2631,12 +2623,6 @@ C The current summary of the bug.
Returns true if the user does not want email notifications for the
specified bug ID, else returns false.
-=item C
-
-Returns true if the user has set their preferences to use Markdown
-for rendering comments. If an optional C object is passed
-then it returns true if the comment has markdown enabled.
-
=back
=head2 Saved Recent Bug Lists
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm
index f50bb6aee..7c28b1d8d 100644
--- a/Bugzilla/WebService/Bug.pm
+++ b/Bugzilla/WebService/Bug.pm
@@ -331,9 +331,7 @@ sub render_comment {
Bugzilla->switch_to_shadow_db();
my $bug = $params->{id} ? Bugzilla::Bug->check($params->{id}) : undef;
- my $markdown = $params->{markdown} ? 1 : 0;
- my $tmpl = $markdown ? '[% text FILTER markdown(bug, { is_markdown => 1 }) %]' : '[% text FILTER markdown(bug) %]';
-
+ my $tmpl = '[% text FILTER quoteUrls(bug) %]';
my $html;
my $template = Bugzilla->template;
$template->process(
@@ -352,16 +350,15 @@ sub _translate_comment {
: undef;
my $comment_hash = {
- id => $self->type('int', $comment->id),
- bug_id => $self->type('int', $comment->bug_id),
- creator => $self->type('email', $comment->author->login),
- time => $self->type('dateTime', $comment->creation_ts),
+ id => $self->type('int', $comment->id),
+ bug_id => $self->type('int', $comment->bug_id),
+ creator => $self->type('email', $comment->author->login),
+ time => $self->type('dateTime', $comment->creation_ts),
creation_time => $self->type('dateTime', $comment->creation_ts),
- is_private => $self->type('boolean', $comment->is_private),
- is_markdown => $self->type('boolean', $comment->is_markdown),
- text => $self->type('string', $comment->body_full),
+ is_private => $self->type('boolean', $comment->is_private),
+ text => $self->type('string', $comment->body_full),
attachment_id => $self->type('int', $attach_id),
- count => $self->type('int', $comment->count),
+ count => $self->type('int', $comment->count),
};
# Don't load comment tags unless enabled
@@ -825,20 +822,10 @@ sub add_attachment {
$attachment->update($timestamp);
my $comment = $params->{comment} || '';
-
- my $is_markdown = 0;
- if (ref $params->{comment} eq 'HASH') {
- $is_markdown = $params->{comment}->{is_markdown};
- $comment = $params->{comment}->{body};
- }
-
- ThrowUserError('markdown_disabled') if $is_markdown && !_is_markdown_enabled();
-
- $attachment->bug->add_comment($comment,
- { is_markdown => $is_markdown,
- isprivate => $attachment->isprivate,
- type => CMT_ATTACHMENT_CREATED,
- extra_data => $attachment->id });
+ $attachment->bug->add_comment($comment,
+ { isprivate => $attachment->isprivate,
+ type => CMT_ATTACHMENT_CREATED,
+ extra_data => $attachment->id });
push(@created, $attachment);
}
$_->bug->update($timestamp) foreach @created;
@@ -884,14 +871,6 @@ sub update_attachment {
my $flags = delete $params->{flags};
my $comment = delete $params->{comment};
- my $is_markdown = 0;
-
- if (ref $comment eq 'HASH') {
- $is_markdown = $comment->{is_markdown};
- $comment = $comment->{body};
- }
-
- ThrowUserError('markdown_disabled') if $is_markdown && !_is_markdown_enabled();
# Update the values
foreach my $attachment (@attachments) {
@@ -911,10 +890,9 @@ sub update_attachment {
if ($comment = trim($comment)) {
$attachment->bug->add_comment($comment,
- { is_markdown => $is_markdown,
- isprivate => $attachment->isprivate,
- type => CMT_ATTACHMENT_UPDATED,
- extra_data => $attachment->id });
+ { isprivate => $attachment->isprivate,
+ type => CMT_ATTACHMENT_UPDATED,
+ extra_data => $attachment->id });
}
$changes = translate($changes, ATTACHMENT_MAPPED_RETURNS);
@@ -971,13 +949,9 @@ sub add_comment {
if (defined $params->{private}) {
$params->{is_private} = delete $params->{private};
}
-
- ThrowUserError('markdown_disabled') if $params->{is_markdown} && !_is_markdown_enabled();
-
# Append comment
- $bug->add_comment($comment, { isprivate => $params->{is_private},
- is_markdown => $params->{is_markdown},
- work_time => $params->{work_time} });
+ $bug->add_comment($comment, { isprivate => $params->{is_private},
+ work_time => $params->{work_time} });
# Capture the call to bug->update (which creates the new comment) in
# a transaction so we're sure to get the correct comment_id.
@@ -1425,14 +1399,6 @@ sub _add_update_tokens {
}
}
-sub _is_markdown_enabled {
- my $user = Bugzilla->user;
-
- return Bugzilla->feature('markdown')
- && $user->settings->{use_markdown}->{is_enabled}
- && $user->setting('use_markdown') eq 'on';
-}
-
1;
__END__
@@ -2110,10 +2076,6 @@ may be deprecated and removed in a future release.
C True if this comment is private (only visible to a certain
group called the "insidergroup"), False otherwise.
-=item is_markdown
-
-C True if this comment needs Markdown processing, false otherwise.
-
=back
=item B
@@ -3131,9 +3093,6 @@ don't want it to be assigned to the component owner.
=item C (boolean) - If set to true, the description
is private, otherwise it is assumed to be public.
-=item C (boolean) - If set to true, the description
-has Markdown structures, otherwise it is a normal text.
-
=item C (array) - An array of group names to put this
bug into. You can see valid group names on the Permissions
tab of the Preferences screen, or, if you are an administrator,
@@ -3289,8 +3248,6 @@ Bugzilla B<4.4>.
=item REST API call added in Bugzilla B<5.0>.
-=item C option added in Bugzilla B<5.0>.
-
=back
=back
@@ -3350,21 +3307,7 @@ C or C.
=item C
-C or hash. A comment to add along with this attachment. If C
-is a hash, it has the following keys:
-
-=over
-
-=item C
-
-C The body of the comment.
-
-=item C
-
-C If set to true, the comment has Markdown structures; otherwise, it
-is an ordinary text.
-
-=back
+C A comment to add along with this attachment.
=item C
@@ -3442,10 +3385,6 @@ the type id value to update or add a flag.
The flag type is inactive and cannot be used to create new flags.
-=item 140 (Markdown Disabled)
-
-You tried to set the C flag of the comment to true but the Markdown feature is not enabled.
-
=item 600 (Attachment Too Large)
You tried to attach a file that was larger than Bugzilla will accept.
@@ -3481,8 +3420,6 @@ You set the "data" field to an empty string.
=item REST API call added in Bugzilla B<5.0>.
-=item C added in Bugzilla B<5.0>.
-
=back
=back
@@ -3529,21 +3466,7 @@ attachment.
=item C
-C or hash: An optional comment to add to the attachment's bug. If C is
-a hash, it has the following keys:
-
-=over
-
-=item C
-
-C The body of the comment to be added.
-
-=item C
-
-C If set to true, the comment has Markdown structures; otherwise it is a normal
-text.
-
-=back
+C An optional comment to add to the attachment's bug.
=item C
@@ -3692,11 +3615,6 @@ the type id value to update or add a flag.
The flag type is inactive and cannot be used to create new flags.
-=item 140 (Markdown Disabled)
-
-You tried to set the C flag of the C to true but Markdown feature is
-not enabled.
-
=item 601 (Invalid MIME Type)
You specified a C argument that was blank, not a valid
@@ -3757,9 +3675,6 @@ you did not set the C parameter.
=item C (boolean) - If set to true, the comment is private,
otherwise it is assumed to be public.
-=item C (boolean) - If set to true, the comment has Markdown
-structures, otherwise it is a normal text.
-
=item C (double) - Adds this many hours to the "Hours Worked"
on the bug. If you are not in the time tracking group, this value will
be ignored.
@@ -3801,11 +3716,6 @@ You tried to add a private comment, but don't have the necessary rights.
You tried to add a comment longer than the maximum allowed length
(65,535 characters).
-=item 140 (Markdown Disabled)
-
-You tried to set the C flag to true but the Markdown feature
-is not enabled.
-
=back
=item B
@@ -3828,8 +3738,6 @@ code of 32000.
=item REST API call added in Bugzilla B<5.0>.
-=item C option added in Bugzilla B<5.0>.
-
=back
=back
diff --git a/Bugzilla/WebService/Constants.pm b/Bugzilla/WebService/Constants.pm
index db50611cb..d612ebc75 100644
--- a/Bugzilla/WebService/Constants.pm
+++ b/Bugzilla/WebService/Constants.pm
@@ -101,7 +101,6 @@ use constant WS_ERROR_CODE => {
comment_id_invalid => 111,
comment_too_long => 114,
comment_invalid_isprivate => 117,
- markdown_disabled => 140,
# Comment tagging
comment_tag_disabled => 125,
comment_tag_invalid => 126,
diff --git a/docs/en/rst/using.rst b/docs/en/rst/using.rst
index eb887093b..da0d19450 100644
--- a/docs/en/rst/using.rst
+++ b/docs/en/rst/using.rst
@@ -404,7 +404,7 @@ You can use it to find a bug by its number or its alias, too.
You'll find the Quicksearch box in Bugzilla's footer area.
On Bugzilla's front page, there is an additional
-`quicksearcgh help <../../../page.cgi?id=quicksearch.html>`_
+`Help <../../page.cgi?id=quicksearch.html>`_
link which details how to use it.
.. _casesensitivity:
@@ -757,23 +757,6 @@ Don't use sigs in comments. Signing your name ("Bill") is acceptable,
if you do it out of habit, but full mail/news-style
four line ASCII art creations are not.
-.. _markdown:
-
-Markdown
---------
-
-Markdown lets you write your comments in a structured plain-text format and
-have your comments generated as HTML. For example, you may use Markdown for
-making a part of your comment look italic or bold in the generated HTML. Bugzilla
-supports most of the structures defined by `standard Markdown `_.
-but does NOT support inline images and inline HTML. For a complete reference on
-supported Markdown structures, please see the `syntax help <../../../page.cgi?id=markdown.html>`_
-link next to the markdown checkbox for new comments.
-
-To use the Markdown feature, make sure that ``Enable Markdown support for comments`` is set to ``on``
-in your :ref:`userpreferences` and that you also check the ``Use Markdown for this comment`` option below
-the comment box when you want to submit a new comment.
-
.. _comment-wrapping:
Server-Side Comment Wrapping
diff --git a/js/field.js b/js/field.js
index c24603988..5589bc498 100644
--- a/js/field.js
+++ b/js/field.js
@@ -983,33 +983,17 @@ function initDirtyFieldTracking() {
*/
var last_comment_text = '';
-var last_markdown_cb_value = null;
-var comment_textarea_width = null;
-var comment_textarea_height = null;
-function refresh_markdown_preview (bug_id) {
- if (!YAHOO.util.Dom.hasClass('comment_preview_tab', 'active_comment_tab'))
- return;
- show_comment_preview(bug_id, 1);
-}
-
-function show_comment_preview(bug_id, refresh) {
+function show_comment_preview(bug_id) {
var Dom = YAHOO.util.Dom;
var comment = document.getElementById('comment');
var preview = document.getElementById('comment_preview');
- var markdown_cb = document.getElementById('use_markdown');
if (!comment || !preview) return;
- if (Dom.hasClass('comment_preview_tab', 'active_comment_tab') && !refresh)
- return;
+ if (Dom.hasClass('comment_preview_tab', 'active_comment_tab')) return;
- if (!comment_textarea_width) {
- comment_textarea_width = (comment.clientWidth - 4) + 'px';
- comment_textarea_height = comment.offsetHeight + 'px';
- }
-
- preview.style.width = comment_textarea_width;
- preview.style.height = comment_textarea_height;
+ preview.style.width = (comment.clientWidth - 4) + 'px';
+ preview.style.height = comment.offsetHeight + 'px';
var comment_tab = document.getElementById('comment_tab');
Dom.addClass(comment, 'bz_default_hidden');
@@ -1023,7 +1007,7 @@ function show_comment_preview(bug_id, refresh) {
Dom.addClass('comment_preview_error', 'bz_default_hidden');
- if (last_comment_text == comment.value && last_markdown_cb_value == markdown_cb.checked)
+ if (last_comment_text == comment.value)
return;
Dom.addClass('comment_preview_text', 'bz_default_hidden');
@@ -1043,14 +1027,7 @@ function show_comment_preview(bug_id, refresh) {
document.getElementById('comment_preview_text').innerHTML = data.result.html;
Dom.addClass('comment_preview_loading', 'bz_default_hidden');
Dom.removeClass('comment_preview_text', 'bz_default_hidden');
- if (markdown_cb.checked) {
- Dom.removeClass('comment_preview_text', 'comment_preview_pre');
- }
- else {
- Dom.addClass('comment_preview_text', 'comment_preview_pre');
- }
last_comment_text = comment.value;
- last_markdown_cb_value = markdown_cb.checked;
}
},
failure: function(res) {
@@ -1066,8 +1043,7 @@ function show_comment_preview(bug_id, refresh) {
params: {
Bugzilla_api_token: BUGZILLA.api_token,
id: bug_id,
- text: comment.value,
- markdown: (markdown_cb != null) && markdown_cb.checked ? 1 : 0
+ text: comment.value
}
})
);
diff --git a/post_bug.cgi b/post_bug.cgi
index 9da8faec1..4680d6804 100755
--- a/post_bug.cgi
+++ b/post_bug.cgi
@@ -118,7 +118,6 @@ foreach my $field (qw(cc groups)) {
$bug_params{$field} = [$cgi->param($field)];
}
$bug_params{'comment'} = $comment;
-$bug_params{'is_markdown'} = $cgi->param('use_markdown');
my @multi_selects = grep {$_->type == FIELD_TYPE_MULTI_SELECT && $_->enter_bug}
Bugzilla->active_custom_fields;
diff --git a/process_bug.cgi b/process_bug.cgi
index b3d979960..fbd302974 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -233,13 +233,9 @@ if (should_set('keywords')) {
$set_all_fields{keywords}->{$action} = $cgi->param('keywords');
}
if (should_set('comment')) {
- my $is_markdown = ($user->use_markdown
- && $cgi->param('use_markdown') eq '1') ? 1 : 0;
-
$set_all_fields{comment} = {
body => scalar $cgi->param('comment'),
is_private => scalar $cgi->param('comment_is_private'),
- is_markdown => $is_markdown,
};
}
if (should_set('see_also')) {
diff --git a/skins/standard/global.css b/skins/standard/global.css
index 60e06af73..74005319a 100644
--- a/skins/standard/global.css
+++ b/skins/standard/global.css
@@ -243,15 +243,6 @@
textarea {
font-family: monospace;
}
-
- blockquote {
- border-left: 0.2em solid #CCC;
- color: #65379C;
- padding: 0;
- margin-left: 0.5em;
- margin-bottom: -1em;
- white-space: pre;
- }
/* generic (end) */
/* Links that control whether or not something is visible. */
@@ -319,7 +310,7 @@ div#docslinks {
}
/* tbody.file pre is for the Diff view of attachments. */
-pre.bz_comment_text, .uneditable_textarea, tbody.file pre {
+.bz_comment_text, .uneditable_textarea, tbody.file pre {
font-family: monospace;
white-space: pre-wrap;
}
@@ -732,16 +723,12 @@ input.required, select.required, span.required_explanation {
width: auto;
}
-.comment_preview_pre {
- white-space: pre;
-}
-
#comment_preview_loading {
font-style: italic;
}
#comment {
- margin: 0;
+ margin: 0px 0px 1em 0px;
}
/*******************/
diff --git a/t/004template.t b/t/004template.t
index b0ca5a629..d38f9e16b 100644
--- a/t/004template.t
+++ b/t/004template.t
@@ -88,7 +88,6 @@ foreach my $include_path (@include_paths) {
wrap_comment => sub { return $_ },
none => sub { return $_ } ,
ics => [ sub { return sub { return $_; } }, 1] ,
- markdown => sub { return $_ } ,
},
}
);
diff --git a/t/008filter.t b/t/008filter.t
index 204bbdc43..f0a26d13f 100644
--- a/t/008filter.t
+++ b/t/008filter.t
@@ -212,7 +212,7 @@ sub directive_ok {
return 1 if $directive =~ /FILTER\ (html|csv|js|base64|css_class_quote|ics|
quoteUrls|time|uri|xml|lower|html_light|
obsolete|inactive|closed|unitconvert|
- txt|html_linebreak|markdown|none)\b/x;
+ txt|html_linebreak|none)\b/x;
return 0;
}
diff --git a/template/en/default/bug/comment.html.tmpl b/template/en/default/bug/comment.html.tmpl
index 76054f92a..96cbb63ed 100644
--- a/template/en/default/bug/comment.html.tmpl
+++ b/template/en/default/bug/comment.html.tmpl
@@ -32,16 +32,6 @@
[% END %]
diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl
index 3895691d7..d040e651d 100644
--- a/template/en/default/bug/comments.html.tmpl
+++ b/template/en/default/bug/comments.html.tmpl
@@ -14,16 +14,13 @@
@@ -162,13 +126,7 @@
[% END %]
[reply]
[% END %]
@@ -267,12 +225,12 @@
[%# Don't indent the
block, since then the spaces are displayed in the
# generated HTML
#%]
-<[% user.use_markdown(comment) ? "div" : "pre" %] class="bz_comment_text[% " collapsed" IF comment.collapsed %]"
+
diff --git a/template/en/default/filterexceptions.pl b/template/en/default/filterexceptions.pl
index f5f1bd783..6adbbcb95 100644
--- a/template/en/default/filterexceptions.pl
+++ b/template/en/default/filterexceptions.pl
@@ -20,7 +20,7 @@
# [% foo.push() %]
# TT loop variables - [% loop.count %]
# Already-filtered stuff - [% wibble FILTER html %]
-# where the filter is one of html|csv|js|quoteUrls|time|uri|xml|markdown|none
+# where the filter is one of html|csv|js|quoteUrls|time|uri|xml|none
%::safe = (
diff --git a/template/en/default/global/setting-descs.none.tmpl b/template/en/default/global/setting-descs.none.tmpl
index ac99094c5..6e3358782 100644
--- a/template/en/default/global/setting-descs.none.tmpl
+++ b/template/en/default/global/setting-descs.none.tmpl
@@ -44,8 +44,7 @@
"requestee_cc" => "Automatically add me to the CC list of $terms.bugs I am requested to review",
"bugmail_new_prefix" => "Add 'New:' to subject line of email sent when a new $terms.bug is filed",
"possible_duplicates" => "Display possible duplicates when reporting a new $terms.bug",
- "use_markdown" => "Enable Markdown support for $terms.comments"
- }
+ }
%]
[% Hook.process('settings') %]
diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl
index e9bdb63c4..a0ae25c08 100644
--- a/template/en/default/global/user-error.html.tmpl
+++ b/template/en/default/global/user-error.html.tmpl
@@ -1181,9 +1181,6 @@
[%# Used for non-web-based LOGIN_REQUIRED situations. %]
You must log in before using this part of [% terms.Bugzilla %].
- [% ELSIF error == "markdown_disabled" %]
- Markdown feature is not enabled.
-
[% ELSIF error == "migrate_config_created" %]
The file [% file FILTER html %] contains configuration
variables that must be set before continuing with the migration.
diff --git a/template/en/default/pages/linked.html.tmpl b/template/en/default/pages/linked.html.tmpl
index ab74470c2..3fcf87952 100644
--- a/template/en/default/pages/linked.html.tmpl
+++ b/template/en/default/pages/linked.html.tmpl
@@ -18,7 +18,7 @@
-[%- cgi.param("text") FILTER markdown FILTER html -%]
+[%- cgi.param("text") FILTER quoteUrls FILTER html -%]
diff --git a/template/en/default/pages/markdown.html.tmpl b/template/en/default/pages/markdown.html.tmpl
deleted file mode 100644
index 8b43f5f17..000000000
--- a/template/en/default/pages/markdown.html.tmpl
+++ /dev/null
@@ -1,265 +0,0 @@
-[%# this source code form is subject to the terms of the mozilla public
- # license, v. 2.0. if a copy of the mpl was not distributed with this
- # file, you can obtain one at http://mozilla.org/mpl/2.0/.
- #
- # this source code form is "incompatible with secondary licenses", as
- # defined by the mozilla public license, v. 2.0.
- #%]
-
-[% INCLUDE global/header.html.tmpl
- title = "Markdown Syntax Guide"
- bodyclasses = ['narrow_page']
- %]
-
-
What is Markdown?
-
- Markdown is a simple text formatting language that enables you to write your
- [%+ terms.comments %] in plain-text and have them generated as HTML. Markdown
- in [%+ terms.Bugzilla %] supports the following structures:
-
-
-
- You have two options for making headers. First, you may use any number of
- equal signs (for first-level header) or dashes (for second-level headers).
-
-
-
-
- This is an H1 header
- ====================
-
- This is an H2 header
- --------------------
-
-
-
-
- Second, you can use hash signs at the beginning of the line to specify the
- level of the header from 1 to 6.
-
-
-
-
- # This is the largest header (H1 level)
- ### This is a small header (H3 level)
- ###### This is the smallest header (H6 level)
-
-
-
-
-
Blockquotes
-
- Use a closing angle bracket (>) at the beginning of the line
- to indicate a line as quoted.
-
-
-
-
- > Some text to be quoted.
-
-
-
-
-
Emphasis
-
- Single underscores or asterisks will make the text italic. Double underscores
- or asterisks will make the text bold.
-
-
-
-
- _This text will become italic_
- *This text also will become italic*
-
- __But this one will be bold__
- **And this one as well**
-
-
-
-
- Turns into
-
-
-
- This text will become italic
- This text also will become italic
-
- But this one will be bold
- And this one as well
-
-
-
- Use different signs to combine them nestedly in order to avoid ambiguity:
-
-
-
-
- Note: [% terms.Bugzilla %] will skip emphasizing words that
- have the form of multiple_underscore_in_a_word. This measure is
- taken to not emphasize words that are possible programming variables. If your
- word has this form and you still want it to become emphasized/bold, you must
- use single/double asterisks (*) instead of underscores
- (_).
-
-
Lists
-
- Markdown supports both unordered and ordered lists.
-
-
Unordered Lists
-
- Use asterisks (*), pluses (+) or hyphens
- (-) to mark the items of an unordered list.
-
-
-
-
- + First item
- + Second item
- + Third item
-
-
-
-
-
Ordered Lists
-
- Use a number followed by a period to denote an item of an ordered list.
-
-
-
-
- 1. Item one
- 4. Item two
- 3. Item three
-
-
-
-
- Note: Your numbers have no effect on the rendered item
- numbers and the rendered numbers are automatically generated. Your numbers
- are only used to specify the items of an ordered list.
-
-
- A list item can have nested lists recursively:
-
-
-
-
-
- 1. Item one
- 4. Item two
- 3. Item three
- * First sub-item
- * Second sub-item
- 5. Item four
-
-
-
-
-
Code
-
- To make a part of your text to get generated as a piece of code, use one or
- more backticks (`) and close that
- part with the same number of backticks.
-
-
-
- Please see the manual for `printf` function.
-
-
-
- If you want to make some lines of code, you need to use 3 or more backticks at
- the beginning of a line followed by your code lines and concluded by 3 or more
- backticks.
-
-
-
-
- See my function:
- ```
- int sum(int x, int y) {
- return x + y;
- }
- ```
-
-
-
-
- You can also use a tab or [% constants.MARKDOWN_TAB_WIDTH FILTER html %] or
- more spaces at the beginning of each line of your code to make the whole block
- look as a code block. Please take care that you might make your lines as code
- blocks by inadvertently indenting them.
-
-
Strikethroughs
-
- Surround your text between a pair of two tildes to have your text crossed out.
-
-
-
-
- Module ~~Foo~~ is deprecated.
-
-
-
-
-
Links
-
- Literal URLs and Email addresses get linkified automatically. Besides that,
- you can define links with link texts and titles. You may define your links
- either as inline or as a reference. To define a link as inline, put your link
- text in square bracket immediately followed by a pair of parentheses which
- containts the URL that you want your link to point to and an optional
- link title surrounded by quotes.
-
-
-
-
- This is [Bugzilla](http://www.bugzilla.org "View Bugzilla Homepage")
- [% terms.bug %] tracking system.
- This [example link](http://www.example.com) does not have title.
-
-
-
-
- To define your links in a reference style, define your links any where in
- your [% terms.comment %] with the following format:
-
-
-
-
- That is, define a unique ID for each link in square brackets with their
- corresponding URL and optional title in quotes or parentheses. Then, point to
- those links simply by writing your link text in square brackets followed by
- the ID in another pair of square brackets.
-
-
-
-
- [Bugzilla][bz] is open-sourced server software designed to help groups
- manage software development. [Mozilla][mz] uses [Bugzilla][bz] to track
- issues with Firefox and other projects.
-
-
-
-
-[% PROCESS global/footer.html.tmpl %]
diff --git a/template/en/default/setup/strings.txt.pl b/template/en/default/setup/strings.txt.pl
index 6de588e6d..7dc8e8bf1 100644
--- a/template/en/default/setup/strings.txt.pl
+++ b/template/en/default/setup/strings.txt.pl
@@ -101,7 +101,6 @@ END
feature_xmlrpc => 'XML-RPC Interface',
feature_detect_charset => 'Automatic charset detection for text attachments',
feature_typesniffer => 'Sniff MIME type of attachments',
- feature_markdown => 'Markdown syntax support for comments',
file_remove => 'Removing ##name##...',
file_rename => 'Renaming ##from## to ##to##...',
--
cgit v1.2.1