Revert "Prevent failure with data set 77 in CommonMarkWeak"

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

View File

@ -115,7 +115,7 @@ class Parsedown
# Blocks
#
protected function lines(array $lines, $parentType = null)
protected function lines(array $lines)
{
$CurrentBlock = null;
@ -216,12 +216,6 @@ class Parsedown
$blockTypes = array_merge($highPriority, $blockTypes);
if ( $parentType === 'List' and ($a = array_search('List', $blockTypes)) !== false and ($b = array_search('Code', $blockTypes)) !== false and $a > $b and ($placeholder = $this->blockList($Line)))
{
unset($blockTypes[$b]);
array_splice($blockTypes, $a + 1, 0, 'Code');
}
#
# ~
@ -1508,7 +1502,7 @@ class Parsedown
protected function li($lines)
{
$markup = $this->lines($lines, 'List');
$markup = $this->lines($lines);
$trimmedMarkup = trim($markup);