v3.6.0
This release adds new methods and fixes multiple issues with the PHP-Textile parser and its formatting features. Changes include:
- Fix empty-like link texts (closes #141).
- Fix empty-like RedCloth definitions (closes #142).
- Fix empty-like table summaries (closes #143).
- Fix image dimension generation on Windows when doc_root can not be resolved (closes #140).
- Fix HTTP protocol restrictions not affecting images (closes #144).
- Add more versatile parsing method,
Parser::parse()
. - Add
Parser::setRestricted()
andParser::isRestrictedModeEnabled()
. - Add
Parser::setLite()
andParser::isLiteModeEnabled()
. - Add
Parser::setDocumentType()
andParser::getDocumentType()
. - Add
Parser::setDocumentRootDirectory()
andParser::getDocumentRootDirectory()
. - Add
Parser::setImages()
andParser::isImageTagEnabled()
. - Add
Parser::setBlockTags()
andParser::isBlockTagEnabled()
(closes #138). - Add
Parser::setLinkRelationShip()
andParser::getLinkRelationShip()
. - Add
Parser::setLineWrap()
andParser::isLineWrapEnabled()
(closes #139). - Deprecate
Parser::textileThis()
,Parser::textileRestricted()
andParser::textileCommon()
in favour of the more versatileParser::parse()
. - Fix: relURL() now supports unicode characters (closes #146).
- Fix: Undefined variable warning.
- Feature/Fix: Allow link text that contains newline characters (closes #154, #155 & #167).
- Fix: Stop encoding '+' characters in tel: links (closes #156).
- Make dimension glyph replacements a little stricter.
- Fix: Prevent hyphenated class on td cells adding incorrect style (closes #164).
- Jail read of image dimensions to images within the document root path (closes #145).
- Various code cleanups, typo corrections and refactoring.
- Documentation fixes and extensions.
Install using Composer:
$ composer require netcarver/textile:3.6.0
PHP-Textile v3.6.0 requires PHP 5.3.0 or newer.