diff --git a/Parsedown.php b/Parsedown.php index 733a58a..30db1dd 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -557,7 +557,7 @@ class Parsedown # Inline Link / Image - if (strpos($text, ']') !== FALSE and preg_match_all('/(!?)\[(.*?)\][ ]?\((.*?)\)/', $text, $matches, PREG_SET_ORDER)) # inline + if (strpos($text, '](') !== FALSE and preg_match_all('/(!?)\[(.*?)\]\((.*?)\)/', $text, $matches, PREG_SET_ORDER)) # inline { foreach ($matches as $matches) {