Skip to content

Commit

Permalink
Apply correct state
Browse files Browse the repository at this point in the history
  • Loading branch information
aidantwoods committed Oct 13, 2021
1 parent 7b0a9cd commit b73fe2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Parsedown.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public function toHtml($markdown)
* @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)
);
Expand Down

0 comments on commit b73fe2e

Please sign in to comment.