Skip to content

Commit 6d95456

Browse files
authored
Merge pull request #175 from v-sazhin/patch-1
Update LinkConverter.php
2 parents 65f2eff + 06219f1 commit 6d95456

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Converter/LinkConverter.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ public function convert(ElementInterface $element)
2424
} elseif ($href === 'mailto:' . $text && $this->isValidEmail($text)) {
2525
$markdown = '<' . $text . '>';
2626
} else {
27+
if (stristr($href, ' ')) {
28+
$href = '<'.$href.'>';
29+
}
2730
$markdown = '[' . $text . '](' . $href . ')';
2831
}
2932

0 commit comments

Comments
 (0)