mirror of
https://github.com/erusev/parsedown.git
synced 2025-09-03 20:02:33 +02:00
Fix merging of adjacent blockquotes
This commit is contained in:
@@ -698,15 +698,13 @@ class Parsedown
|
|||||||
|
|
||||||
protected function blockQuoteContinue($Line, array $Block)
|
protected function blockQuoteContinue($Line, array $Block)
|
||||||
{
|
{
|
||||||
|
if (isset($Block['interrupted']))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ($Line['text'][0] === '>' and preg_match('/^>[ ]?(.*)/', $Line['text'], $matches))
|
if ($Line['text'][0] === '>' and preg_match('/^>[ ]?(.*)/', $Line['text'], $matches))
|
||||||
{
|
{
|
||||||
if (isset($Block['interrupted']))
|
|
||||||
{
|
|
||||||
$Block['element']['text'] []= '';
|
|
||||||
|
|
||||||
unset($Block['interrupted']);
|
|
||||||
}
|
|
||||||
|
|
||||||
$Block['element']['text'] []= $matches[1];
|
$Block['element']['text'] []= $matches[1];
|
||||||
|
|
||||||
return $Block;
|
return $Block;
|
||||||
|
Reference in New Issue
Block a user