v3.5.5
This release fixes multiple issues with PHP-Textile library and its formatting features. Changes:
- Fix rendering of left and right image alignment in non-lite restricted mode (closes #132).
- Fix wrong triggered error type when using the deprecated
$encode
option ofParser::textileThis()
. - Fix attribute regular expression to stop it matching multiple times (closes #131).
- Fix rendering of lists in table cells with span attributes set (closes #135).
- Throws an exception if
Parser::__construct()
is given invalid document type, instead of eating it silently and returning document using the default content-type you weren't wishing for. Prevents issues where you want HTML5, but silently got XHTML due to typo or an issue in application design. - Clean user-supplied styles prior to sorting and re-formatting.
- Remove dead code and duplicated procedures as outlined by code coverage reports.
- Remove unused internal method
Parser::fSpecial()
. - Test code coverage, coding style and run unit tests against HHVM.
- Footnote reference numbers support unicode characters.
- Use named sub-patterns in regular expressions (closes #121).
- Refactored link detection code.
Install using Composer:
$ composer require "netcarver/textile 3.5.5"
PHP-Textile v3.5.5 requires PHP 5.3.0 or newer.