mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
resolve #175
This commit is contained in:
parent
9ed72ccd09
commit
e61a6114b0
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user