You are here

protected function Markdown::_doAutoLinks_url_callback in Express 8

* Parse URL callback *

Parameters

array $matches: * @return string

File

vendor/michelf/php-markdown/Michelf/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);
}