diff options
author | M. Dent <dentm42@gmail.com> | 2019-09-23 19:18:53 +0200 |
---|---|---|
committer | M. Dent <dentm42@gmail.com> | 2019-09-23 19:18:53 +0200 |
commit | 1e924a8530e8d82c8926f59ef14914fbd5aea2c6 (patch) | |
tree | 88c351be326f2807f91dacbc4b66ab9973f2f6fa /vendor/league/html-to-markdown/src/Converter/LinkConverter.php | |
parent | 23995ccb07780c37b6867ad84ca8ce6ff6b943a2 (diff) | |
parent | efec0af394df5ed4674d9cba8945be17de475388 (diff) | |
download | volse-hubzilla-1e924a8530e8d82c8926f59ef14914fbd5aea2c6.tar.gz volse-hubzilla-1e924a8530e8d82c8926f59ef14914fbd5aea2c6.tar.bz2 volse-hubzilla-1e924a8530e8d82c8926f59ef14914fbd5aea2c6.zip |
Merge branch 'cherry-pick-e4336578' into 'dev'
composer update vendor/league/html-to-markdown/.github/
See merge request hubzilla/core!1734
Diffstat (limited to 'vendor/league/html-to-markdown/src/Converter/LinkConverter.php')
-rw-r--r-- | vendor/league/html-to-markdown/src/Converter/LinkConverter.php | 3 |
1 files changed, 3 insertions, 0 deletions
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 . ')'; } |