This commit is contained in:
Emanuil Rusev 2015-01-15 02:37:20 +02:00
parent 9ed72ccd09
commit e61a6114b0
1 changed files with 1 additions and 2 deletions

View File

@ -32,8 +32,7 @@ class Parsedown
$this->DefinitionData = array();
# standardize line breaks
$text = str_replace("\r\n", "\n", $text);
$text = str_replace("\r", "\n", $text);
$text = str_replace(array("\r\n", "\r"), "\n", $text);
# remove surrounding line breaks
$text = trim($text, "\n");