diff --git a/Parsedown.php b/Parsedown.php index d729740..0397431 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -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");