Releases: textile/php-textile
v3.7.3
v3.7.2
v3.7.1
v3.7.0
Changes:
- Fix problems with list parsing; no longer matches inline-syntax, such as strongs, as list item markers (closes #172).
- Add option to disable specific substitution symbols by setting them to FALSE (see #158).
- Add option to apply classes, such as language-identifiers, to the code element within a
bc
(closes #96). - Add
Parser::configure()
, the method can be extended to create pre-configured parser classes. - Automatic paragraph wrapping now checks the contents and does not wrap paragraphs already wrapped in non-phrasing HTML tags (closes #22 and #63).
- Add option to disable Textile formatting for blocks wrapped in non-standard HTML-like tags.
- Check for starting list depth (closes #24).
- Add
Parser::setImagePrefix()
,Parser::setLinkPrefix()
,Parser::getImagePrefix()
andParser::getLinkPrefix()
(closes #169). - Add
Parser::setRawBlocks()
andParser::isRawBlocksEnabled()
. - Deprecate
Parser::setRelativeImagePrefix()
andParser::$relativeImagePrefix
in favour of the new decoupled methods.
Install using Composer:
$ composer require netcarver/textile:3.7.0
PHP-Textile v3.7.0 requires PHP 5.3.0 or newer.
v3.5.6
v2.5.5
v3.6.1
- Fix problems with attribute parsing under PHP >= 7.1 (closes #175 and #176).
- Fix test suite compatibility issues under PHP >= 7.2 (closes #184).
- Fix missing deprecation notices.
- Add test fixture for Unicode characters in image title attributes.
- Tidy entity encoding process (closes #182).
- Drop legacy PHP 5.5 and 5.4 unit test targets due to test suite's dependencies' requirements.
Install using Composer:
$ composer require netcarver/textile:3.6.1
PHP-Textile v3.6.1 requires PHP 5.3.0 or newer.
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.
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.
v2.4.3
This is a legacy patch for the ancient 2.4 series. This quick fix resolves issues with PHP 5.5 and improves future compatibility. This release is intended for those that are stuck on 2.4 releases and would require minor patches for backwards compatibility reasons. Do not use this on new installations, see 3.5.x and newer instead. Changes:
- Use Perl-compatible named sub-patterns.
- Allow overriding symbol constants as intended.
Install using Composer:
$ composer require "netcarver/textile 2.4.3"
PHP-Textile v2.4.3 requires PHP 4.4.9 or newer (supports PHP 5.x).