Upgrade to 3.1.4
This commit is contained in:
@@ -650,6 +650,11 @@ class App
|
||||
$text = $this->apply('kirbytext:before', $text);
|
||||
$text = $this->kirbytags($text, $data);
|
||||
$text = $this->markdown($text, $inline);
|
||||
|
||||
if ($this->option('smartypants', false) !== false) {
|
||||
$text = $this->smartypants($text);
|
||||
}
|
||||
|
||||
$text = $this->apply('kirbytext:after', $text);
|
||||
|
||||
return $text;
|
||||
@@ -700,7 +705,11 @@ class App
|
||||
*/
|
||||
public function languages(): Languages
|
||||
{
|
||||
return $this->languages = $this->languages ?? Languages::load();
|
||||
if ($this->languages !== null) {
|
||||
return clone $this->languages;
|
||||
}
|
||||
|
||||
return $this->languages = Languages::load();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1122,7 +1131,13 @@ class App
|
||||
*/
|
||||
public function smartypants(string $text = null): string
|
||||
{
|
||||
return $this->component('smartypants')($this, $text, $this->options['smartypants'] ?? []);
|
||||
$options = $this->option('smartypants', []);
|
||||
|
||||
if ($options === true) {
|
||||
$options = [];
|
||||
}
|
||||
|
||||
return $this->component('smartypants')($this, $text, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user