From e61a6114b03ba1ef93d6354c7cbed0ce39309fdc Mon Sep 17 00:00:00 2001 From: Emanuil Rusev Date: Thu, 15 Jan 2015 02:37:20 +0200 Subject: [PATCH] resolve #175 --- Parsedown.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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");