diff --git a/Parsedown.php b/Parsedown.php index 9008a89..c11adff 100644 --- a/Parsedown.php +++ b/Parsedown.php @@ -1119,6 +1119,9 @@ class Parsedown protected function lineElements($text, $nonNestables = array()) { + # standardize line breaks + $text = str_replace(array("\r\n", "\r"), "\n", $text); + $Elements = array(); $nonNestables = (empty($nonNestables)