1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

Fix merging of adjacent blockquotes

This commit is contained in:
Aidan Woods 2018-03-28 03:27:09 +01:00
parent 07216480db
commit 92e426e0e8
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -697,16 +697,14 @@ class Parsedown
}
protected function blockQuoteContinue($Line, array $Block)
{
if ($Line['text'][0] === '>' and preg_match('/^>[ ]?(.*)/', $Line['text'], $matches))
{
if (isset($Block['interrupted']))
{
$Block['element']['text'] []= '';
unset($Block['interrupted']);
return;
}
if ($Line['text'][0] === '>' and preg_match('/^>[ ]?(.*)/', $Line['text'], $matches))
{
$Block['element']['text'] []= $matches[1];
return $Block;