mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Collect State from continuable state updating block on advance
This commit is contained in:
parent
2b79d599fb
commit
369aea5d8d
|
@ -92,6 +92,10 @@ final class Parsedown
|
|||
) {
|
||||
$Block = $CurrentBlock->advance($Context, $State);
|
||||
|
||||
if ($Block instanceof StateUpdatingBlock) {
|
||||
$State = $Block->latestState();
|
||||
}
|
||||
|
||||
if (isset($Block)) {
|
||||
$CurrentBlock = $Block;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user