diff --git a/src/Parsedown.php b/src/Parsedown.php index 8a2daa5..8cabf84 100644 --- a/src/Parsedown.php +++ b/src/Parsedown.php @@ -100,20 +100,13 @@ final class Parsedown } } - # ~ - $marker = $Line->text()[0]; - # ~ - $potentialBlockTypes = \array_merge( $this->State->get(BlockTypes::class)->unmarked(), $this->State->get(BlockTypes::class)->for($marker) ); - # - # ~ - foreach ($potentialBlockTypes as $blockType) { $Block = $blockType::build($Context, $CurrentBlock, $this->State); @@ -134,8 +127,6 @@ final class Parsedown } } - # ~ - if (isset($CurrentBlock) and $CurrentBlock instanceof Paragraph) { $Block = $CurrentBlock->advance($Context); } @@ -151,21 +142,13 @@ final class Parsedown } } - # ~ - if (isset($CurrentBlock)) { $Blocks[] = $CurrentBlock; } - # ~ - return $Blocks; } - # - # ~ - # - /** * @param string $text * @return StateRenderable[]