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:
parent
07216480db
commit
92e426e0e8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user