1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

Remove leftover hackyness

This commit is contained in:
Aidan Woods
2019-01-31 17:01:40 +00:00
parent cb211a88a8
commit 63a97a926b
2 changed files with 3 additions and 5 deletions

View File

@@ -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'