1

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?

frosty
  • 2,779
  • 6
  • 34
  • 63
  • Just out of curiousity, can you try using new lines instead (`$text = "> here's a quote" . PHP_EOL . PHP_EOL . "reply to quote"`)? – Chris Forrence Feb 08 '16 at 17:19

1 Answers1

1

your string should be:

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

reply to quote"

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

CodeGodie
  • 12,116
  • 6
  • 37
  • 66