PHP SmartyPants: History
This page shows the history for PHP SmartyPants Lib. You might also be interested in the classic version history.
PHP SmartyPants Lib 1.8.1 — 12 Dec 2016
- Fixed an issue introduced in 1.8.0 where backtick quotes were broken.
PHP SmartyPants Lib 1.8.0 — 13 Nov 2016
Can now set replacement characters for all transformations using configuration variables, including ellipsies and dashes.
Relocated replacement quotes configuration variables from
SmartyPantsTyppographer
toSmartyPants
. Also relocateddecodeEntitiesInConfiguration()
to follow the configuration variables.Added conversion of apostrophe and double quote to Hebrew Geresh and Gershayim when the apostrophe or double quote is surrounded on both sides by a Hebrew character. For instance:
input: צה"ל / צ'ארלס output: צה״ל / צ׳ארלס
You can still put quotes around Hebrew words and they’ll become curled quotation marks (if that is enabled). This new transform only applies in the middle of a word, and only to words in Hebrew.
PHP SmartyPants Lib 1.7.1 — 16 Oct 2016
- Fixing bug where
decodeEntitiesInConfiguration()
would cause the configuration to set the space for units to an empty string.
PHP SmartyPants Lib 1.7.0 — 15 Oct 2016
Made
public
some configuration variables that were documented were documented aspublic
but were actuallyprotected
.Added the
decodeEntitiesInConfiguration()
method onSmartyPantsTypographer
to quickly convert HTML entities in configuration variables to their corresponding UTF-8 character.
PHP SmartyPants Lib 1.6.0 — October 10, 2016
This is the first release of PHP SmartyPants Lib. This package requires PHP version 5.3 or later and is designed to work with PSR-0 autoloading and, optionally with Composer. Here is a list of the changes since PHP SmartyPants 1.5.1f:
Plugin interface for Wordpress and Smarty is no longer present in the Lib package. The classic package is still available if you need it: https://michelf.ca/projects/php-markdown/classic/
SmartyPants parser is now encapsulated in its own class, with methods and configuration variables
public
andprotected
protection attributes. This has been in unreleased beta versions for a while, now it’s official.SmartyPants now works great with PSR-0 autoloading and Composer. If however you prefer to more directly
require_once
the files, the “.inc.php” variants of the file will make sure everything is included.For those of you who cannot use class autoloading, you can now include
Michelf/SmartyPants.inc.php
orMichelf/SmartyPantsTypographer.inc.php
(note the.inc.php
extension) to automatically include other files required by the parser.