diff options
Diffstat (limited to 'includes/Parsedown.php')
-rw-r--r-- | includes/Parsedown.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/Parsedown.php b/includes/Parsedown.php index 1b9d6d5..88c0b72 100644 --- a/includes/Parsedown.php +++ b/includes/Parsedown.php @@ -17,7 +17,7 @@ class Parsedown { # ~ - const version = '1.7.4'; + const version = '1.7.4.ProjectCloudsdale'; # ~ @@ -794,7 +794,7 @@ class Parsedown $Block['depth'] ++; } - if (preg_match('/(.*?)<\/'.$Block['name'].'>[ ]*$/i', $Line['text'], $matches)) # close + if (preg_match('/(.*?)<\/'.$Block['name'].'>[ ]*$/i', $Line['text'])) # close { if ($Block['depth'] > 0) { @@ -823,7 +823,7 @@ class Parsedown protected function blockReference($Line) { - if (preg_match('/^\[(.+?)\]:[ ]*<?(\S+?)>?(?:[ ]+["\'(](.+)["\')])?[ ]*$/', $Line['text'], $matches)) + if (preg_match('/^\[(.+?)]:[ ]*<?(\S+?)>?(?:[ ]+["\'(](.+)["\')])?[ ]*$/', $Line['text'], $matches)) { $id = strtolower($matches[1]); @@ -1272,7 +1272,7 @@ class Parsedown $remainder = $Excerpt['text']; - if (preg_match('/\[((?:[^][]++|(?R))*+)\]/', $remainder, $matches)) + if (preg_match('/\[((?:[^][]++|(?R))*+)]/', $remainder, $matches)) { $Element['text'] = $matches[1]; @@ -1298,7 +1298,7 @@ class Parsedown } else { - if (preg_match('/^\s*\[(.*?)\]/', $remainder, $matches)) + if (preg_match('/^\s*\[(.*?)]/', $remainder, $matches)) { $definition = strlen($matches[1]) ? $matches[1] : $Element['text']; $definition = strtolower($definition); |