Merge pull request #435 from wiggisser/master

fix for error with mailto links
This commit is contained in:
Stéphane Goetz 2017-01-23 23:26:11 +01:00 committed by GitHub
commit 1a2d5c336b
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class LinkRenderer extends \League\CommonMark\Inline\Renderer\LinkRenderer
protected function isExternalUrl($url)
{
return preg_match('|^(?:[a-z]+:)?//|', $url);
return preg_match('|^(?:[a-z]+:)?//|', $url) || substr($url, 0, 7) == "mailto:";
}
/**