mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Return state after block parse instead of mutating the instance copy
This commit is contained in:
@@ -102,11 +102,14 @@ final class BlockQuote implements ContinuableBlock
|
||||
return new Handler(
|
||||
/** @return Element */
|
||||
function (State $State) {
|
||||
return new Element(
|
||||
'blockquote',
|
||||
[],
|
||||
$State->applyTo((new Parsedown($State))->lines($this->Lines))
|
||||
list($StateRenderables, $State) = Parsedown::lines(
|
||||
$this->Lines,
|
||||
$State
|
||||
);
|
||||
|
||||
$Renderables = $State->applyTo($StateRenderables);
|
||||
|
||||
return new Element('blockquote', [], $Renderables);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user