function MarkdownExtra_Parser::_doTable_leadingPipe_callback in Markdown 5
Same name and namespace in other branches
- 6 markdown.php \MarkdownExtra_Parser::_doTable_leadingPipe_callback()
File
- ./
markdown.php, line 2306
Class
Code
function _doTable_leadingPipe_callback($matches) {
$head = $matches[1];
$underline = $matches[2];
$content = $matches[3];
# Remove leading pipe for each row.
$content = preg_replace('/^ *[|]/m', '', $content);
return $this
->_doTable_callback(array(
$matches[0],
$head,
$underline,
$content,
));
}