You are here

protected function Markdown::_doAutoLinks_url_callback in Markdown 7

* Parse URL callback *

Parameters

array $matches: * @return string

File

includes/Markdown.php, line 1646

Class

Markdown
Markdown Parser Class

Namespace

Michelf

Code

protected function _doAutoLinks_url_callback($matches) {
  $url = $this
    ->encodeURLAttribute($matches[1], $text);
  $link = "<a href=\"{$url}\">{$text}</a>";
  return $this
    ->hashPart($link);
}