Skip to content

Commit

Permalink
handle line breaks in paragraph blocks, bcosca/fatfree#1100
Browse files Browse the repository at this point in the history
  • Loading branch information
ikkez committed Mar 22, 2018
1 parent 7e1cd9b commit a27f52d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions markdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ function($expr) {
},
$str
);
$str=preg_replace('/\s{2}\r?\n/','<br />',$str);
return '<p>'.$this->scan($str).'</p>'."\n\n";
}
return '';
Expand Down

0 comments on commit a27f52d

Please sign in to comment.