aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/league/html-to-markdown/src/Converter/LinkConverter.php
diff options
context:
space:
mode:
authorM. Dent <dentm42@gmail.com>2019-09-23 19:18:53 +0200
committerM. Dent <dentm42@gmail.com>2019-09-23 19:18:53 +0200
commit1e924a8530e8d82c8926f59ef14914fbd5aea2c6 (patch)
tree88c351be326f2807f91dacbc4b66ab9973f2f6fa /vendor/league/html-to-markdown/src/Converter/LinkConverter.php
parent23995ccb07780c37b6867ad84ca8ce6ff6b943a2 (diff)
parentefec0af394df5ed4674d9cba8945be17de475388 (diff)
downloadvolse-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.php3
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 . ')';
}