diff --git a/Parsedown.php b/Parsedown.php index 0af75f1..21a4616 100644 --- a/Parsedown.php +++ b/Parsedown.php @@ -1120,6 +1120,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)