You are here

protected function MarkdownExtra::_doTable_leadingPipe_callback in Express 8

* Callback for removing the leading pipe for each row *

Parameters

array $matches: * @return string

File

vendor/michelf/php-markdown/Michelf/MarkdownExtra.php, line 1156

Class

MarkdownExtra
Markdown Extra Parser Class

Namespace

Michelf

Code

protected function _doTable_leadingPipe_callback($matches) {
  $head = $matches[1];
  $underline = $matches[2];
  $content = $matches[3];
  $content = preg_replace('/^ *[|]/m', '', $content);
  return $this
    ->_doTable_callback(array(
    $matches[0],
    $head,
    $underline,
    $content,
  ));
}