SmartyPants parser
Add your own SmartyPants parser
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 |
null |
Text to parse |
$options | array |
[ ] |
SmartyPants options |
Return type
string