diff options
author | Minteck <contact@minteck.org> | 2022-04-12 15:16:59 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-04-12 15:16:59 +0200 |
commit | 62c7e1a74b35ef6d054fdf015d60ba52dc10eb14 (patch) | |
tree | deb80c4e2e8036f8af1b21120fc8200c18e4c573 /includes/Parsedown.php | |
parent | 6973bf083d2c065972284bc93a1e37c35ecd2205 (diff) | |
download | cloudsdale-62c7e1a74b35ef6d054fdf015d60ba52dc10eb14.tar.gz cloudsdale-62c7e1a74b35ef6d054fdf015d60ba52dc10eb14.tar.bz2 cloudsdale-62c7e1a74b35ef6d054fdf015d60ba52dc10eb14.zip |
Social page + additional admin options + patch Parsedown
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); |