Revert "Prevent breaking remaining previously compliant CommonMarkWeak tests"

This reverts commit 6973302ca8.
This commit is contained in:
Daniel Rudolf 2016-10-13 19:25:30 +02:00
parent 6973302ca8
commit eb853da92a
No known key found for this signature in database
GPG Key ID: A061F02CD8DE4538
1 changed files with 2 additions and 7 deletions

View File

@ -165,7 +165,7 @@ class Parsedown
if (isset($CurrentBlock['continuable'])) if (isset($CurrentBlock['continuable']))
{ {
$Block = $this->{'block'.$CurrentBlock['type'].'Continue'}($Line, $CurrentBlock, $parentType); $Block = $this->{'block'.$CurrentBlock['type'].'Continue'}($Line, $CurrentBlock);
if (isset($Block)) if (isset($Block))
{ {
@ -449,7 +449,7 @@ class Parsedown
} }
} }
protected function blockFencedCodeContinue($Line, $Block, $parentType) protected function blockFencedCodeContinue($Line, $Block)
{ {
if (isset($Block['complete'])) if (isset($Block['complete']))
{ {
@ -472,11 +472,6 @@ class Parsedown
return $Block; return $Block;
} }
if ($parentType === 'List')
{
$Line['body'] = preg_replace('/^[ ]{0,'.min(4, $Line['indent']).'}/', '', $Line['body']);
}
$Block['element']['text']['text'] .= "\n".$Line['body'];; $Block['element']['text']['text'] .= "\n".$Line['body'];;
return $Block; return $Block;