1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00
This commit is contained in:
Emanuil Rusev 2015-01-15 02:37:20 +02:00
parent 9ed72ccd09
commit e61a6114b0

View File

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