From 9819416f35c9a01448ec5d2b839750ce26794963 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Mon, 25 Nov 2013 11:50:34 +0100 Subject: [PATCH] Markdown: fixed matching ( ) and { } in links --- src/CustomMarkdown.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }