From 63a97a926ba2b69bf8f5fe668635b7e8688f82c1 Mon Sep 17 00:00:00 2001 From: Aidan Woods Date: Thu, 31 Jan 2019 17:01:40 +0000 Subject: [PATCH] Remove leftover hackyness --- psalm.xml | 2 ++ src/Components/Blocks/TList.php | 6 +----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/psalm.xml b/psalm.xml index 4def5cc..2ddc2e8 100644 --- a/psalm.xml +++ b/psalm.xml @@ -40,6 +40,8 @@ + + diff --git a/src/Components/Blocks/TList.php b/src/Components/Blocks/TList.php index b82e985..d9dd683 100644 --- a/src/Components/Blocks/TList.php +++ b/src/Components/Blocks/TList.php @@ -291,10 +291,6 @@ final class TList implements ContinuableBlock \array_map( /** @return Element */ function (Lines $Lines) use ($State) { - if ($this->isLoose && $Lines->trailingBlankLines() === 0) { - $Lines = $Lines->appendingBlankLines(1); - } - list($StateRenderables, $State) = Parsedown::lines( $Lines, $State @@ -302,7 +298,7 @@ final class TList implements ContinuableBlock $Renderables = $State->applyTo($StateRenderables); - if (! $Lines->containsBlankLines() + if (! $this->isLoose && isset($Renderables[0]) && $Renderables[0] instanceof Element && $Renderables[0]->name() === 'p'