SmartyPants parser
Add your own SmartyPants parser
Kirby::plugin(
name: 'my/smartypants',
extends: [
'components' => [
'smartypants' => function (Kirby $kirby, string $text = null, array $options = []) {
return YourSmartyPantsParser::parse($text);
}
]
]
);
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $kirbyrequired | Kirby\Cms\App |
no default value | |
| $text | string |
null
|
Text to parse |
| $options | array |
[]
|
SmartyPants options |
Return type
string