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
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9
2 changed files with 3 additions and 5 deletions

View File

@ -40,6 +40,8 @@
<referencedMethod name="Erusev\Parsedown\Configurables\BlockTypes::addingMarkedLowPrecedence" /> <referencedMethod name="Erusev\Parsedown\Configurables\BlockTypes::addingMarkedLowPrecedence" />
<referencedMethod name="Erusev\Parsedown\Configurables\BlockTypes::addingUnmarkedHighPrecedence" /> <referencedMethod name="Erusev\Parsedown\Configurables\BlockTypes::addingUnmarkedHighPrecedence" />
<referencedMethod name="Erusev\Parsedown\Configurables\BlockTypes::addingUnmarkedLowPrecedence" /> <referencedMethod name="Erusev\Parsedown\Configurables\BlockTypes::addingUnmarkedLowPrecedence" />
<referencedMethod name="Erusev\Parsedown\Parsing\Lines::containsBlankLines" />
<referencedMethod name="Erusev\Parsedown\Parsing\Lines::trailingBlankLines" />
</errorLevel> </errorLevel>
</PossiblyUnusedMethod> </PossiblyUnusedMethod>
</issueHandlers> </issueHandlers>

View File

@ -291,10 +291,6 @@ final class TList implements ContinuableBlock
\array_map( \array_map(
/** @return Element */ /** @return Element */
function (Lines $Lines) use ($State) { function (Lines $Lines) use ($State) {
if ($this->isLoose && $Lines->trailingBlankLines() === 0) {
$Lines = $Lines->appendingBlankLines(1);
}
list($StateRenderables, $State) = Parsedown::lines( list($StateRenderables, $State) = Parsedown::lines(
$Lines, $Lines,
$State $State
@ -302,7 +298,7 @@ final class TList implements ContinuableBlock
$Renderables = $State->applyTo($StateRenderables); $Renderables = $State->applyTo($StateRenderables);
if (! $Lines->containsBlankLines() if (! $this->isLoose
&& isset($Renderables[0]) && isset($Renderables[0])
&& $Renderables[0] instanceof Element && $Renderables[0] instanceof Element
&& $Renderables[0]->name() === 'p' && $Renderables[0]->name() === 'p'