Permalink
Browse files

Fixed an issue with code blocks preceded by a blank line with whitesp…

…ace on it.
  • Loading branch information...
1 parent 834cd34 commit 82c323389c9f71b2161c12a197253d2d17093e4f @michelf committed May 4, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 markdown.php
View
2 markdown.php
@@ -1707,7 +1707,7 @@ function _hashHTMLBlocks_inMarkdown($text, $indent = 0,
'. ( !$span ? ' # If not in span.
|
# Indented code block
- (?> ^\n? | \n\n )
+ (?> ^[ ]*\n? | \n[ ]*\n )
[ ]{'.($indent+4).'}[^\n]* \n
(?>
(?: [ ]{'.($indent+4).'}[^\n]* | [ ]* ) \n

0 comments on commit 82c3233

Please sign in to comment.