Upgrade to 3.2.5
This commit is contained in:
@@ -2,9 +2,8 @@
|
||||
|
||||
namespace Kirby\Text;
|
||||
|
||||
use Closure;
|
||||
use Kirby\Exception\InvalidArgumentException;
|
||||
use Kirby\Exception\BadMethodCallException;
|
||||
use Kirby\Exception\InvalidArgumentException;
|
||||
|
||||
/**
|
||||
* Representation and parse of a single KirbyTag.
|
||||
@@ -129,7 +128,7 @@ class KirbyTag
|
||||
{
|
||||
$callback = static::$types[$this->type]['html'] ?? null;
|
||||
|
||||
if (is_a($callback, Closure::class) === true) {
|
||||
if (is_a($callback, 'Closure') === true) {
|
||||
return (string)$callback($this);
|
||||
}
|
||||
|
||||
|
@@ -18,7 +18,7 @@ use Exception;
|
||||
*/
|
||||
class KirbyTags
|
||||
{
|
||||
protected static $tagClass = KirbyTag::class;
|
||||
protected static $tagClass = 'Kirby\Text\KirbyTag';
|
||||
|
||||
public static function parse(string $text = null, array $data = [], array $options = []): string
|
||||
{
|
||||
|
@@ -20,7 +20,6 @@ use ParsedownExtra;
|
||||
*/
|
||||
class Markdown
|
||||
{
|
||||
|
||||
/**
|
||||
* Array with all configured options
|
||||
* for the parser
|
||||
@@ -64,9 +63,9 @@ class Markdown
|
||||
public function parse(string $text, bool $inline = false): string
|
||||
{
|
||||
if ($this->options['extra'] === true) {
|
||||
$parser = new ParsedownExtra;
|
||||
$parser = new ParsedownExtra();
|
||||
} else {
|
||||
$parser = new Parsedown;
|
||||
$parser = new Parsedown();
|
||||
}
|
||||
|
||||
$parser->setBreaksEnabled($this->options['breaks']);
|
||||
|
@@ -18,7 +18,6 @@ use Michelf\SmartyPantsTypographer;
|
||||
*/
|
||||
class SmartyPants
|
||||
{
|
||||
|
||||
/**
|
||||
* Array with all configured options
|
||||
* for the parser
|
||||
|
Reference in New Issue
Block a user