You are here

function Markdown_Parser::_stripLinkDefinitions_callback in Markdown 6

Same name and namespace in other branches
  1. 5 markdown.php \Markdown_Parser::_stripLinkDefinitions_callback()
1 method overrides Markdown_Parser::_stripLinkDefinitions_callback()
MarkdownExtra_Parser::_stripLinkDefinitions_callback in ./markdown.php

File

./markdown.php, line 393

Class

Markdown_Parser

Code

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
}