link definitions should not tolerate space between `]` and `(`

This commit is contained in:
Emanuil 2013-07-18 10:07:13 +03:00
parent 0a0a126827
commit 7b091b8915
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{