summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Markdown.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Markdown.pm')
-rw-r--r--Bugzilla/Markdown.pm10
1 files changed, 9 insertions, 1 deletions
diff --git a/Bugzilla/Markdown.pm b/Bugzilla/Markdown.pm
index 2951cd457..72e788fd0 100644
--- a/Bugzilla/Markdown.pm
+++ b/Bugzilla/Markdown.pm
@@ -420,10 +420,17 @@ sub _DoCodeSpans {
return $text;
}
-# Override to add GFM Fenced Code Blocks
+# Override to delay after DoBlockQuotes
sub _DoCodeBlocks {
my ($self, $text) = @_;
+ return $text;
+}
+
+# add GFM Fenced Code Blocks
+sub _DoDelayCodeBlocks {
+ my ($self, $text) = @_;
+
$text =~ s{
^ (${\FENCED_BLOCK}|${\INDENTED_FENCED_BLOCK})
}{
@@ -469,6 +476,7 @@ sub _DoBlockQuotes {
"<blockquote class=\"markdown\">\n$bq\n</blockquote>\n\n";
}egmx;
+ $text = $self->_DoDelayCodeBlocks($text);
return $text;
}