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:
parent
57632f38fb
commit
9f9ef78662
@ -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()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user