You are here

protected function MarkdownExtra::_stripLinkDefinitions_callback in Markdown 7

* Strip link definition callback *

Parameters

array $matches: * @return string

Overrides Markdown::_stripLinkDefinitions_callback

File

includes/MarkdownExtra.php, line 278

Class

MarkdownExtra
Markdown Extra Parser Class

Namespace

Michelf

Code

protected function _stripLinkDefinitions_callback($matches) {
  $link_id = strtolower($matches[1]);
  $url = $matches[2] == '' ? $matches[3] : $matches[2];
  $this->urls[$link_id] = $url;
  $this->titles[$link_id] =& $matches[4];
  $this->ref_attr[$link_id] = $this
    ->doExtraAttributes("", $dummy =& $matches[5]);
  return '';

  // String that will replace the block
}