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

parseTd() protected method

protected parseTd ( $markdown )
    protected function parseTd($markdown)
    {
        if (isset($this->context[1]) && $this->context[1] === 'table') {
            $align = empty($this->_tableCellAlign[$this->_tableCellCount]) ? '' : ' align="' . $this->_tableCellAlign[$this->_tableCellCount] . '"';
            $this->_tableCellCount++;
            return [['text', "</{$this->_tableCellTag}><{$this->_tableCellTag}{$align}>"], isset($markdown[1]) && $markdown[1] === ' ' ? 2 : 1];
            // TODO make a absy node
        }
        return [['text', $markdown[0]], 1];
    }