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
|
* @param \Closure(Renderable[],State):Renderable[] $RenderMap
|
||||||
* @return Renderable[]
|
* @return Renderable[]
|
||||||
*/
|
*/
|
||||||
function (array $Renderables, \Closure $RenderMap): array {
|
function (array $Renderables, \Closure $RenderMap) use ($State): array {
|
||||||
return $RenderMap($Renderables, $this->State);
|
return $RenderMap($Renderables, $State);
|
||||||
},
|
},
|
||||||
$State->applyTo($StateRenderables)
|
$State->applyTo($StateRenderables)
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user