Upgrade to 3.6.2
This commit is contained in:
@@ -49,6 +49,6 @@ class KirbyTags
|
||||
|
||||
return $match[0];
|
||||
}
|
||||
}, $text);
|
||||
}, $text ?? '');
|
||||
}
|
||||
}
|
||||
|
@@ -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);
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user