smartypants
Convert typical text formatting issues into a typographically correct version
Enable SmartyPants
When you activate SmartyPants in your config, SmartyPants rules are automatically applied whenever you use the ->kirbytext()
or ->smartypants()
field methods.
To enable SmartyPants, you can set the smartypants
option to true
:
Custom replacements
You can also override each of the default replacements:
Here is a list of all default settings:
Language specific replacements
To use language specific replacements, you have to enable the smartypants
option in your config and then add your array of options to each language file in /site/languages/
.