diff --git a/Michelf/Markdown.php b/Michelf/Markdown.php index 746a2d0..a21fd09 100644 --- a/Michelf/Markdown.php +++ b/Michelf/Markdown.php @@ -1638,7 +1638,7 @@ protected function doAutoLinks($text) { * @param array $matches * @return string */ - protected function _doAutoLinks_url_callback($matches) { + protected function _doAutoLinks_url_callback($matches, $text = null) { $url = $this->encodeURLAttribute($matches[1], $text); $link = "$text"; return $this->hashPart($link); @@ -1649,7 +1649,7 @@ protected function _doAutoLinks_url_callback($matches) { * @param array $matches * @return string */ - protected function _doAutoLinks_email_callback($matches) { + protected function _doAutoLinks_email_callback($matches, $text = null) { $addr = $matches[1]; $url = $this->encodeURLAttribute("mailto:$addr", $text); $link = "$text";