diff --git a/dependencies/parsedown-extra/ParsedownExtra.php b/dependencies/parsedown-extra/ParsedownExtra.php index 9e1a748ab6..c3db03adf0 100644 --- a/dependencies/parsedown-extra/ParsedownExtra.php +++ b/dependencies/parsedown-extra/ParsedownExtra.php @@ -572,6 +572,9 @@ protected function processTag($elementMarkup) # recursive # http://stackoverflow.com/q/11309194/200145 $elementMarkup = mb_convert_encoding($elementMarkup, 'HTML-ENTITIES', 'UTF-8'); + + # Ensure that saveHTML() is not remove new line characters. New lines will be split by this character. + $DOMDocument->formatOutput = true; # http://stackoverflow.com/q/4879946/200145 $DOMDocument->loadHTML($elementMarkup);