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:
@@ -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))
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user