erusev / parsedown

Better Markdown Parser in PHP
https://parsedown.org
MIT License
14.69k stars 1.12k forks source link

Codeblock displays as one line #815

Closed philipbrembeck closed 2 years ago

philipbrembeck commented 2 years ago

Hello,

I've got the following problem:

What am I doing wrong, why is the content of the code-blocks displayed as one line instead of several?

This is the (fairly standard) php code:

include 'Parsedown.php';
$file = basename($CurPageURL);
$content = file_get_contents($file);
$Parsedown = new Parsedown();
$Parsedown->setBreaksEnabled(true);
$con = $Parsedown->text($content);

Thanks in advance.