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:
parent
cb211a88a8
commit
63a97a926b
@ -40,6 +40,8 @@
|
||||
<referencedMethod name="Erusev\Parsedown\Configurables\BlockTypes::addingMarkedLowPrecedence" />
|
||||
<referencedMethod name="Erusev\Parsedown\Configurables\BlockTypes::addingUnmarkedHighPrecedence" />
|
||||
<referencedMethod name="Erusev\Parsedown\Configurables\BlockTypes::addingUnmarkedLowPrecedence" />
|
||||
<referencedMethod name="Erusev\Parsedown\Parsing\Lines::containsBlankLines" />
|
||||
<referencedMethod name="Erusev\Parsedown\Parsing\Lines::trailingBlankLines" />
|
||||
</errorLevel>
|
||||
</PossiblyUnusedMethod>
|
||||
</issueHandlers>
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user