but I can’t get the text to parse correctly with kirbytext() and get a Type Error if I use smartypants() directly on a text field:
TypeError thrown with message “Argument 3 passed to Kirby\Cms\App::{closure}() must be of the type array, boolean given, called in /Users/lorenzoascani/Sites/fds_v5/kirby/src/Cms/App.php on line 1094”
Unfortunately I tested only with a simple field with only quotes and dashes: If I try to mix other markdown functionality (bold, links, etc.) it won’t parse using smartypants(), while kirbytext() still fails to parse the correct quotes.
Perhaps there is a bug still. I’m currently using v3.1.1.
I previously thought that it would work like in v2 (and as described in the docs)
When you activate SmartyPants in your config, SmartyPants rules are automatically applied whenever you use the ->kirbytext() or ->smartypants() field methods.
I have a related topic. For some reason, instead of an em-dash (“—”), three hyphens --- are returned by smartypants as an en-dash followed by a hyphen like so (“—-”)