phpmarkdownparsedown

Parsedown for PHP blockquotes


I'm using Parsedown for a project. Having trouble with the quotes:

$text = ">here's a quote <br><br> reply to quote";
echo $Parsedown->text($text);

is outputting

<blockquote>
    <p>
        "here's a quote "
        <br>
        <br>
        " reply to quote"
    </p>
</blockquote>

whereas I want the blockquote to end after the second <br>, then have the reply as a simple p. How should the text be, does it use newlines not breaks or something?


Solution

  • your string should be:

    ">here's a quote <br><br>
    
    reply to quote"
    

    Check here: http://parsedown.org/demo