From efec0af394df5ed4674d9cba8945be17de475388 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Mon, 23 Sep 2019 09:16:28 +0000 Subject: composer update vendor/league/html-to-markdown/.github/ (cherry picked from commit e4336578388b3e59ba8130123649ccdc9b8487d0) --- vendor/league/html-to-markdown/src/Converter/LinkConverter.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vendor/league/html-to-markdown/src/Converter/LinkConverter.php') diff --git a/vendor/league/html-to-markdown/src/Converter/LinkConverter.php b/vendor/league/html-to-markdown/src/Converter/LinkConverter.php index c82b70e97..81c18b65f 100644 --- a/vendor/league/html-to-markdown/src/Converter/LinkConverter.php +++ b/vendor/league/html-to-markdown/src/Converter/LinkConverter.php @@ -24,6 +24,9 @@ class LinkConverter implements ConverterInterface } elseif ($href === 'mailto:' . $text && $this->isValidEmail($text)) { $markdown = '<' . $text . '>'; } else { + if (stristr($href, ' ')) { + $href = '<'.$href.'>'; + } $markdown = '[' . $text . '](' . $href . ')'; } -- cgit v1.2.3