mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
resolve #3
This commit is contained in:
@@ -891,6 +891,12 @@ class Parsedown
|
||||
|
||||
$offset = strlen($matches[0]);
|
||||
}
|
||||
elseif (strpos($text, '@') > 1 and preg_match('/<(\S+?@\S+?)>/', $text, $matches))
|
||||
{
|
||||
$markup .= '<a href="mailto:'.$matches[1].'">'.$matches[1].'</a>';
|
||||
|
||||
$offset = strlen($matches[0]);
|
||||
}
|
||||
elseif (preg_match('/^<\/?\w.*?>/', $text, $matches))
|
||||
{
|
||||
$markup .= $matches[0];
|
||||
|
Reference in New Issue
Block a user