Skip to content

Kirby 4.4.1

SmartyPants parser

Add your own SmartyPants parser

/site/plugins/smartypants-parser/index.php
Kirby::plugin('my/smartypants', [
    'components' => [
        'smartypants' => function (Kirby $kirby, string $text = null, array $options = []) {
            return YourSmartyPantsParser::parse($text);
        }
    ]
]);

Parameters

Name Type Default Description
$kirby * Kirby\Cms\App
$text string|null null Text to parse
$options array [ ] SmartyPants options

Return type

string