v2.5.0
This release adds number of improvements, modernizes code base and improves PHP 5.5.0 compatibility. Changes:
- Add composer.json to allow installation via the Composer PHP package manager.
- Regular expression improvements (issues #78, #81 and #83).
- Allow pre-encoded '>' and '<' as alignments.
- Self-referencing links can now be combined with link aliases. eg.
"$":alias1
is now possible. - Fix memory leak and performance degradation when calling same Textile object multiple times.
- Do not double-encode + or % in urls.
- Remove legacy SVN lines and old Textpattern integration methods.
- Refactored code, removing deprecated methods.
- Fix undefined variable in Redcloth-style definition lists.
- Improvements to image handling (closes #69).
- Extend recognition of dimension sign to more complex cases:
-0.5 x -.1 x +100
=>%-0.5 × -.1 × +100%
- Change parse tokens to further prevent glyphs from matching them internally.
- Improve handling of textile within table cells without leading or trailing spaces (eg.
|"$":https://github.com"|_Here we are_|==code==|
etc.) - Improve handling of lists within table cells. (closes #79)
- Allow mixed nested lists (Already supported in Redcloth).
- Improve detection of open quotes in situations like
["(Berk.) Hilton"]
(where the open quote was previously was incorrectly detected encoded.) - Fix a problem with links followed by ':', ';' or '?' like @Do you like "cheese":/cheese?@ where the '?' becomes part of the href rather than a '?' at the end of the sentence. This happens on platforms where PCRE has unicode support.
- Removal of leading \t from generated paragraphs & better indentation of generated lists in the HTML (closes #90).
- New method
textileEncode()
. This is preferred to callingtextileThis()
with the $encode flag. - Follows PSR-1 and PSR-2 as much as possible.
- Dropped Textile's PHP4 heritage and moved over to using a
__construct()
method.
Install using Composer:
$ composer require "netcarver/textile 2.5.0"
Textile v2.5.0 requires PHP 5.0.0 or newer.