Fixed an issue with code blocks preceded by a blank line with whitespace on it.

This commit is contained in:
Michel Fortin 2008-05-04 08:01:33 -04:00
parent 834cd345a0
commit 82c323389c

View file

@ -1707,7 +1707,7 @@ class MarkdownExtra_Parser extends Markdown_Parser {
'. ( !$span ? ' # If not in span.
|
# Indented code block
(?> ^\n? | \n\n )
(?> ^[ ]*\n? | \n[ ]*\n )
[ ]{'.($indent+4).'}[^\n]* \n
(?>
(?: [ ]{'.($indent+4).'}[^\n]* | [ ]* ) \n