Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
5d5c1cfd
Commit
5d5c1cfd
authored
May 20, 2016
by
Albert Ting
Committed by
Dylan Hardison
May 20, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1205415 - Markdown incorrectly parses BlockQuote inside a CodeBlock
r=dylan
parent
34092dea
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
Markdown.pm
Bugzilla/Markdown.pm
+9
-1
No files found.
Bugzilla/Markdown.pm
View file @
5d5c1cfd
...
...
@@ -420,10 +420,17 @@ sub _DoCodeSpans {
return $text;
}
# Override to
add GFM Fenced Code Block
s
# Override to
delay after DoBlockQuote
s
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;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment