diff --git a/src/CustomMarkdown.php b/src/CustomMarkdown.php index b7970a17..9e8bc817 100644 --- a/src/CustomMarkdown.php +++ b/src/CustomMarkdown.php @@ -58,8 +58,8 @@ class CustomMarkdown extends \Michelf\Markdown protected function doAutoLinks2($text) { - $text = preg_replace_callback('{(?<\s]+)}i', [&$this, '_doAutoLinks_url_callback'], $text); - $text = preg_replace_callback('{(?<\s]+)}i', [&$this, '_doAutoLinks_url_callback'], $text); + $text = preg_replace_callback('{(?<\s(){}]+)}i', [&$this, '_doAutoLinks_url_callback'], $text); + $text = preg_replace_callback('{(?<\s(){}]+)}i', [&$this, '_doAutoLinks_url_callback'], $text); return $text; }