erusev / parsedown

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

Multiple blockquotes are getting merged #805

Open royduin opened 3 years ago

royduin commented 3 years ago
> Blockquote 1

> Blockquote 2

Results in:

<blockquote>
<p>Blockquote 1</p>
<p>Blockquote 2</p>
</blockquote>

Instead of:

<blockquote>
<p>Blockquote 1</p>
</blockquote>

<blockquote>
<p>Blockquote 2</p>
</blockquote>
LukeTowers commented 3 years ago

Also seeing this in @wintercms.

You can force two blockquotes to be rendered with the following:

>test

<span></span>
>test
userofit123 commented 2 years ago

Is there an actual fix for this though?

Edi: this actually does not work for me, i see in the actual content.

Edit 2: Realized i didnt have the latest beta version in which this has been fixed. Though, there still is an issue of having to use html_entity_decode to convert the block quotes into actual elements.