You are here

protected function Markdown::_stripLinkDefinitions_callback in Markdown 7

* The callback to strip link definitions *

Parameters

array $matches: * @return string

1 method overrides Markdown::_stripLinkDefinitions_callback()
MarkdownExtra::_stripLinkDefinitions_callback in includes/MarkdownExtra.php
* Strip link definition callback *

File

includes/Markdown.php, line 311

Class

Markdown
Markdown 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];
  return '';

  // String that will replace the block
}