You are here

function MarkdownExtra_Parser::_doTable_leadingPipe_callback in Markdown 6

Same name and namespace in other branches
  1. 5 markdown.php \MarkdownExtra_Parser::_doTable_leadingPipe_callback()

File

./markdown.php, line 2712

Class

MarkdownExtra_Parser

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,
  ));
}