Typogrify
Version 1.1.23
June 18, 2024
Added
- Added
ServicesTraitfor the plugin service component registration
Version 1.1.22
March 27, 2024
Fixed
- Fixed a regression that happened when modernizing the
default_escapefunctionality (#86)
Version 1.1.21
March 27, 2024
Added
- Add
phpstanandecscode linting - Add
code-analysis.yamlGitHub action
Changed
- Updated docs to use node 20 & a new sitemap plugin
- PHPstan code cleanup
- ECS code cleanup
Version 1.1.20
November 27, 2022
Changed
- Switch to VitePress
^1.0.0-alpha.29for the documentation - Add the correct Algolia keys for the doc search functionality
- Add
allow-pluginsto thecomposer.jsonto enable CI to work
Version 1.1.19
February 22, 2022
Added
- Add
.gitattributes&CODEOWNERS
Changed
- Switched documentation system to VitePress
- Use Textlint for the documentation
- Build documentation automatically via GitHub action
Version 1.1.18
April 30, 2019
Changed
- Fixed an issue where
wordLimitturns "à" characters into "�" - Updated Twig namespacing to be compliant with deprecated class aliases in 2.7.x
Version 1.1.17
March 20, 2019
Changed
- Fixed an issue where
wordLimitalways appended the ellipsis, regardless of whether truncation happened or not - Allow for escaping inputs by default
Version 1.1.16
November 8, 2018
Changed
- Fixed an issue with
pluralizeandsingularizenot respecting the$numberpassed in
Version 1.1.15
October 9, 2018
Changed
- Allow
nullto be passed in to the various filters - Once again, revert to not auto-escaping text that is passed in
Version 1.1.14
October 5, 2018
Changed
- Refactored the Twig Extension to use the same methods that the Variable does
- Normalize text passed in by escaping untrusted strings
Version 1.1.13
October 5, 2018
Changed
- Reverted
\Twig_Markupregression; added a note to the docs
Version 1.1.12
October 4, 2018
Changed
- Fixed an issue where Typogrify could return a
\Twig_Markupfrom unsafe input
Version 1.1.11
June 12, 2018
Added
- Added
wordLimitTwig filter/function that truncates a string by the number of words to a given length
Version 1.1.10
April 25, 2018
Added
- Added the ability to set the the maximum number of words considered for dewidowing
Version 1.1.9
March 20, 2018
Changed
- Fixed the
singularizeservice method to properly singularize words
Version 1.1.8
March 12, 2018
Added
- Fix the
getPhpTypographySettings()Twig function to be named correctly
Version 1.1.7
February 1, 2018
Added
- Renamed the composer package name to
craft-typogrify
Version 1.1.6
January 21, 2018
Added
- Added the
typogrifyFeedfilter/function for RSS feeds - Added an optional
isTitle(defaulting tofalse) for thetypogrifyfilter
Changed
- Code comments/cleanup
Version 1.1.5
January 6, 2018
Changed
- Updated to
php-typography^6.0.0
Version 1.1.4
December 8, 2017
Changed
- Set
set_french_punctuation_spacingtofalseby default to avoid spaces before punctuation
Version 1.1.3
December 6, 2017
Added
- Added
truncate,truncateOnWord, andstringytext manipulation functions
Changed
- Updated to require craftcms/cms
^3.0.0-RC1 - Switched to
Craft::$app->view->registerTwigExtensionto register the Twig extension
Version 1.1.2
November 14, 2017
Changed
singularizeandpluralizenow both accept an optionalnumberparameterhumanFileSizenow defaults to1000as the unit of measure, with nicer looking human abbreviations
Version 1.1.1
November 6, 2017
Added
- Added
humanDuration()andhumanRelativeTime()
Version 1.1.0
November 5, 2017
Added
- Added
humanFileSize()to convert bytes to a human readable number, e.g.: 1024 becomes 1K - Added a number of useful inflector functions such as
pluralize(),singularize(),transliterate(), etc. - Added a Variable so you can use
craft.typogrify.smartypants, etc. if you wish
Changed
- Code cleanup
Version 1.0.3
October 19, 2017
Changed
- Set
set_ignore_parser_errorstotrueto make it more lenient at parsing invalid HTML from Redactor - Synced up the
config.phpandSettingsmodel with the updatedphp-typographylib
Version 1.0.2
October 18, 2017
Changed
- Switched to the more modern and maintained
mundschenk-at/php-typographypackage
Version 1.0.1
October 16, 2017
Changed
- Switched to
nystudio107\PhpTypographyto avoid minimum-stability issues
Version 1.0.0
October 14, 2017
Added
- Initial release