From 70121dcc0132e59ab456dbcd1d4708367ae0c91d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jirka=20Kop=C5=99iva?= Date: Thu, 20 Apr 2023 23:16:11 +0200 Subject: [PATCH] Update Markdown.php --- Michelf/Markdown.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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";