Skip to content

Kirby 3.7.5

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 Kirby instance
$text string null Text to parse
$options array [ ] SmartyPants options

Return type

string