Upgrade to 3.6.2

This commit is contained in:
Bastian Allgeier
2022-02-01 11:42:39 +01:00
parent f62d1a39ca
commit 848ea36dcf
108 changed files with 2887 additions and 2622 deletions

View File

@@ -49,6 +49,6 @@ class KirbyTags
return $match[0];
}
}, $text);
}, $text ?? '');
}
}

View File

@@ -37,8 +37,9 @@ class Markdown
public function defaults(): array
{
return [
'breaks' => true,
'extra' => false,
'breaks' => true
'safe' => false
];
}
@@ -69,6 +70,7 @@ class Markdown
}
$parser->setBreaksEnabled($this->options['breaks']);
$parser->setSafeMode($this->options['safe']);
if ($inline === true) {
return @$parser->line($text);

View File

@@ -121,7 +121,7 @@ class SmartyPants
public function parse(string $text = null): string
{
// prepare the text
$text = str_replace('"', '"', $text);
$text = str_replace('"', '"', $text ?? '');
// parse the text
return $this->parser->transform($text);