-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Using a subset of Typogrify filters #3436
Comments
Based on a cursory glance, it seems possible to modify how Pelican invokes Typogrify (along with corresponding changes to the That said, I imagine it would be better to make some changes to Typogrify itself in order to make it easier to apply individual filters, and/or selectively disable filters along the lines of: I plan to publish a new version of Typogrify in January, so if you would be willing to implement some changes to Typogrify and Pelican to enable this kind of flexibility, I would be happy to review, merge, and release new versions in an expedited manner 😊 |
Sounds good. Although each filter is available as a separate function in Typogrify, only the I'll look more closely at this and submit a PR against Typogrify -- not today, but hopefully before your next release! |
Great. When you submit your PR, please do so from my fork, which is intended to replace "upstream" as the canonical repository: https://github.com/justinmayer/typogrify |
Managed to extend my day a little bit. :) |
Feature Request
I appreciate using Typogrify with Pelican, but would like to disable some of the filters it provides.
I'd especially like to disable the
widont
filter. That filter can sometimes cause text in narrow containers to overflow when the last two words are long, whereas the same text would wrap nicely without the non-breaking space introduced bywidont
. But the nail onwidont
's coffin, I think, is the CSStext-wrap
property which can do a much better job (withbalance
orpretty
).One filter I'd definitely want to continue using is
smartypants
.I suspect that allowing to select a list of filters might require changes to Typogrify. Any ideas on the best way to solve this? Thanks.
The text was updated successfully, but these errors were encountered: