League\CommonMark\Block\Element\ListItem::matchesNextLine PHP Method

matchesNextLine() public method

public matchesNextLine ( Cursor $cursor )
$cursor League\CommonMark\Cursor
    public function matchesNextLine(Cursor $cursor)
    {
        if ($cursor->isBlank()) {
            if ($this->firstChild === null) {
                return false;
            }
            $cursor->advanceToFirstNonSpace();
        } elseif ($cursor->getIndent() >= $this->listData->markerOffset + $this->listData->padding) {
            $cursor->advanceBy($this->listData->markerOffset + $this->listData->padding, true);
        } else {
            return false;
        }
        return true;
    }