-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use settings in the typogrify filter? #13
Comments
I've been tryign to figure this out as well. it doesn't seem clear? Can anyone provide support on this? |
@toddpadwick - I did actually figure this out. I should probably submit a pull request to add some documentation. In the meantime: You need to create a file called
Figuring out what the actual settings you can use are is a little trickier since no one seems to have a useful list. The best link i've found is actually the config file from the other Craft 3 Typography plugin, Typogrify (they use the same underlying library). That's here: https://github.com/nystudio107/craft-typogrify/blob/v1/src/config.php You only have to manually set whatever you don't want the default behavior for. |
Excellent, thank you @adrienne . This is helpful. |
Adding more docs on this is on my to-do list. (But I definitely would not complain if somebody PR'd the docs to add a reference; that would be heroic!) |
Passing a settings object doesn't seem to have any effect. Am I doing this right?
|
This could really do with better documentation. I found that the following does work for me:
|
There is no indication of how to use the available "settings" parameter, and I can't sort it out from looking at the code. Please help!
The text was updated successfully, but these errors were encountered: