We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65f2eff commit 06219f1Copy full SHA for 06219f1
src/Converter/LinkConverter.php
@@ -24,6 +24,9 @@ public function convert(ElementInterface $element)
24
} elseif ($href === 'mailto:' . $text && $this->isValidEmail($text)) {
25
$markdown = '<' . $text . '>';
26
} else {
27
+ if (stristr($href, ' ')) {
28
+ $href = '<'.$href.'>';
29
+ }
30
$markdown = '[' . $text . '](' . $href . ')';
31
}
32
0 commit comments