mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Apply correct state
This commit is contained in:
parent
7b0a9cda04
commit
b73fe2e9ec
@ -52,8 +52,8 @@ final class Parsedown
|
||||
* @param \Closure(Renderable[],State):Renderable[] $RenderMap
|
||||
* @return Renderable[]
|
||||
*/
|
||||
function (array $Renderables, \Closure $RenderMap): array {
|
||||
return $RenderMap($Renderables, $this->State);
|
||||
function (array $Renderables, \Closure $RenderMap) use ($State): array {
|
||||
return $RenderMap($Renderables, $State);
|
||||
},
|
||||
$State->applyTo($StateRenderables)
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user