1
0
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:
Aidan Woods
2019-01-26 20:37:02 +00:00
parent b728f254b7
commit d6f526d80f
11 changed files with 47 additions and 36 deletions

View File

@@ -84,7 +84,7 @@ final class Header implements Block
return new Element(
'h' . \strval($this->level),
[],
$State->applyTo((new Parsedown($State))->line($this->text))
$State->applyTo(Parsedown::line($this->text, $State))
);
}
);