Version 1.1.22

March 27, 2024

Fixed

  • Fixed a regression that happened when modernizing the default_escape functionality (#86)

Version 1.1.21

March 27, 2024

Added

  • Add phpstan and ecs code linting
  • Add code-analysis.yaml GitHub 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.29 for the documentation
  • Add the correct Algolia keys for the doc search functionality
  • Add allow-plugins to the composer.json to 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 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 and singularize 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 to false) for the typogrify 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 to false by default to avoid spaces before punctuation

Version 1.1.3

December 6, 2017

Added

  • Added truncate, truncateOnWord, and stringy 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 and pluralize now both accept an optional number parameter
  • humanFileSize now defaults to 1000 as the unit of measure, with nicer looking human abbreviations

Version 1.1.1

November 6, 2017

Added

  • Added humanDuration() and humanRelativeTime()

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 to true to make it more lenient at parsing invalid HTML from Redactor
  • Synced up the config.php and Settings model with the updated php-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