1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

This should be slightly faster

Merge would honour changes, and removals
are equivalent to changing to default value.
This commit is contained in:
Aidan Woods 2019-01-25 20:23:04 +00:00
parent 57632f38fb
commit 9f9ef78662
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -112,9 +112,7 @@ final class Parsedown
if (isset($Block)) { if (isset($Block)) {
if ($Block instanceof StateUpdatingBlock) { if ($Block instanceof StateUpdatingBlock) {
$this->State = $this->State->mergingWith( $this->State = $Block->latestState();
$Block->latestState()
);
} }
if (isset($CurrentBlock) && ! $Block->acquiredPrevious()) { if (isset($CurrentBlock) && ! $Block->acquiredPrevious()) {