protected isListLine ( string $line ) : boolean | ||
$line | string | |
return | boolean | true if the given line is a list line |
protected function isListLine($line)
{
// A buffer is a list if at least the first line is a list-style
$listLine = $this->parseListLine($line);
if ($listLine) {
return $listLine['depth'] == 0 || !$this->isCode;
}
return false;
}