1
0
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:
Aidan Woods 2021-10-13 19:50:47 +01:00
parent 7b0a9cda04
commit b73fe2e9ec
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -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)
);