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