Typogrify
Version 4.0.1
November 27, 2022
Changed
- Switch to VitePress
^1.0.0-alpha.29
for the documentation - Add the correct Algolia keys for the doc search functionality
- Add
allow-plugins
to thecomposer.json
to enable CI to work
Fixed
- Fixed an issue where
null
or other non-string values were not typecast when passed totruncate()
ortruncateOnWord()
Version 4.0.0
May 24, 2022
Added
- Initial Craft CMS 4 release
Fixed
- Fixed the various filters to allow for the passing of empty values via (#73)
Version 4.0.0-beta.2
March 4, 2022
Fixed
- Updated types for Craft CMS
4.0.0-alpha.1
via Rector
Version 4.0.0-beta.1
February 22, 2022
Added
- Initial Craft CMS 4 compatibility
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
wordLimit
turns "à" 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
wordLimit
always 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
pluralize
andsingularize
not respecting the$number
passed in
Version 1.1.15
October 9, 2018
Changed
- Allow
null
to 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_Markup
regression; added a note to the docs
Version 1.1.12
October 4, 2018
Changed
- Fixed an issue where Typogrify could return a
\Twig_Markup
from unsafe input
Version 1.1.11
June 12, 2018
Added
- Added
wordLimit
Twig 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
singularize
service 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
typogrifyFeed
filter/function for RSS feeds - Added an optional
isTitle
(defaulting tofalse
) for thetypogrify
filter
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_spacing
tofalse
by default to avoid spaces before punctuation
Version 1.1.3
December 6, 2017
Added
- Added
truncate
,truncateOnWord
, andstringy
text manipulation functions
Changed
- Updated to require craftcms/cms
^3.0.0-RC1
- Switched to
Craft::$app->view->registerTwigExtension
to register the Twig extension
Version 1.1.2
November 14, 2017
Changed
singularize
andpluralize
now both accept an optionalnumber
parameterhumanFileSize
now defaults to1000
as 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_errors
totrue
to make it more lenient at parsing invalid HTML from Redactor - Synced up the
config.php
andSettings
model with the updatedphp-typography
lib
Version 1.0.2
October 18, 2017
Changed
- Switched to the more modern and maintained
mundschenk-at/php-typography
package
Version 1.0.1
October 16, 2017
Changed
- Switched to
nystudio107\PhpTypography
to avoid minimum-stability issues
Version 1.0.0
October 14, 2017
Added
- Initial release