1
0
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:
Aidan Woods 2019-02-10 18:34:36 +00:00
parent 2b79d599fb
commit 369aea5d8d
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -92,6 +92,10 @@ final class Parsedown
) {
$Block = $CurrentBlock->advance($Context, $State);
if ($Block instanceof StateUpdatingBlock) {
$State = $Block->latestState();
}
if (isset($Block)) {
$CurrentBlock = $Block;