cebe\markdown\block\TableTrait::identifyTable PHP Method

identifyTable() protected method

identify a line as the beginning of a table block.
protected identifyTable ( $line, $lines, $current )
    protected function identifyTable($line, $lines, $current)
    {
        return strpos($line, '|') !== false && isset($lines[$current + 1]) && preg_match('~^\\s*\\|?(\\s*:?-[\\-\\s]*:?\\s*\\|\\s*:?-[\\-\\s]*:?\\s*)+\\|?\\s*$~', $lines[$current + 1]);
    }