erusev/parsedown

Codeblock displays as one line

philipbrembeck opened this issue · 0 comments

Hello,

I've got the following problem:

  • Markdown-input:
    Markdown Input

  • Output:
    Parsedown Output

  • Expected behavior:
    Expected Behavior

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.