You are here

function Markdown_Parser::_doAutoLinks_url_callback in Markdown 5

Same name and namespace in other branches
  1. 6 markdown.php \Markdown_Parser::_doAutoLinks_url_callback()

File

./markdown.php, line 1433

Class

Markdown_Parser

Code

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