You are here

protected function Markdown::_doAutoLinks_email_callback in Markdown 7

* Parse email address callback *

Parameters

array $matches: * @return string

File

includes/Markdown.php, line 1657

Class

Markdown
Markdown Parser Class

Namespace

Michelf

Code

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