block = new ListBlock($listData); } public function getBlock(): ListBlock { return $this->block; } public function isContainer(): bool { return true; } public function canContain(AbstractBlock $childBlock): bool { if (! $childBlock instanceof ListItem) { return false; } // Another list item is being added to this list block. // If the previous line was blank, that means this list // block is "loose" (not tight). if ($this->hadBlankLine && $this->linesAfterBlank === 1) { $this->block->setTight(false); $this->hadBlankLine = false; } return true; } public function tryContinue(Cursor $cursor, BlockContinueParserInterface $activeBlockParser): ?BlockContinue { if ($cursor->isBlank()) { $this->hadBlankLine = true; $this->linesAfterBlank = 0; } elseif ($this->hadBlankLine) { $this->linesAfterBlank++; } // List blocks themselves don't have any markers, only list items. So try to stay in the list. // If there is a block start other than list item, canContain makes sure that this list is closed. return BlockContinue::at($cursor); } } __halt_compiler();----SIGNATURE:----c/bWzjCUied7B05UVeTp3WwsV4T2vEM9C/QhbMZGgNu/8RZoSdzZgb+0KQov589PLb1qVyPRhxtA5uTFohDrm8reuU9z4FzvfSv3HF43sSmXyqP+y6zqcSG+xpeb+BZTjEinet5lTfoPqb4pno02Hh2hET7fmXmw83FCk6UxJEgZy3oCdpujCbUoiV/0daz6DR51LFPoZC9LqZqA5KVpVxW/Nzll2LqrAHsQaV1aSR7GGfA1XQGSDYTYiiN16EtQWvPUypO9sWQyAnpzzcSxi62ynSIcVco9aEahDfDyLEYO91QltPtF/8/bUtYxR7vXZ5V0GUYicjsPaDz8eCzjgW+AiOQ4WIizvkqGTf9AYhuj0KfU5iBiVs5k3UQrYbHGfMGI8vFGRgRmevMkcU/6tQnXXNMf1k7s3zflCJZxQZSkjxr+/EFmSvcABqtM0gtB/dsbB3ypZoGii/oFzPhbTj3Bpe6x5VE7HezA/kQ+4iZc5AmQivp1w3Q4ITz/ygTecu6G+KVoheJUDGBLZ7WeY4v9tZjKnM33CtYLgbeNWvBFVn+bCt5Y3+QLrUB/9RA7QmB7wankgWbv34vzzkKx+a5iI6eFm5hl7aiKR/1XpvQggxWbn3rd5FXE/ajn6IstMlHZYxRACsTRyBoWyu38ORBQQ5OxaoBKglGGHBKNzXs=----ATTACHMENT:----MTUzNDI4MjYyNjQwMTc4OCA0NDE5MjkzMTc1MDA0MjgyIDYxNTQ0NTE0NzgxOTkwMDk=