Skip to content

Releases: textile/php-textile

v3.7.3

30 Aug 18:43
Compare
Choose a tag to compare

Changes:

  • Fix issues where divider tags placed on their own line within a paragraph, would disable Textile processing for that paragraph block (closes #194).

Install using Composer:

$ composer require netcarver/textile:3.7.3

PHP-Textile v3.7.3 requires PHP 5.3.0 or newer.

v3.7.2

08 Jun 17:59
Compare
Choose a tag to compare

Changes:

  • Fix quote and bracket processing around span and other inline tags (closes #191 and #192).

Install using Composer:

$ composer require netcarver/textile:3.7.2

PHP-Textile v3.7.1 requires PHP 5.3.0 or newer.

v3.7.1

26 Jan 17:11
Compare
Choose a tag to compare

Changes:

  • Fix and omit anchor links prefixing (closes #190).
  • Alignment attribute can be specified last within a block tag definition (closes #189).

Install using Composer:

$ composer require netcarver/textile:3.7.1

PHP-Textile v3.7.1 requires PHP 5.3.0 or newer.

v3.7.0

15 Dec 01:14
Compare
Choose a tag to compare

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() and Parser::getLinkPrefix() (closes #169).
  • Add Parser::setRawBlocks() and Parser::isRawBlocksEnabled().
  • Deprecate Parser::setRelativeImagePrefix() and Parser::$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

18 Nov 10:32
Compare
Choose a tag to compare

This is a patch backports PHP compatibility improvements to legacy 3.5 version of PHP-Textile:

  • Fix problems with attribute parsing under PHP >= 7.1 (see #175 and #176).

Install using Composer:

$ composer require netcarver/textile:3.5.6

PHP-Textile v3.5.6 requires PHP 5.3.0 or newer.

v2.5.5

18 Nov 11:34
Compare
Choose a tag to compare

This is a patch backports PHP compatibility improvements to legacy 2.5 version of PHP-Textile:

  • Fix problems with attribute parsing under PHP >= 7.1 (see #175 and #176).

Install using Composer:

$ composer require netcarver/textile:2.5.5

PHP-Textile v2.5.5 requires PHP 5.0.0 or newer.

v3.6.1

21 Oct 16:09
Compare
Choose a tag to compare
  • 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

17 Nov 14:31
Compare
Choose a tag to compare

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() and Parser::isRestrictedModeEnabled().
  • Add Parser::setLite() and Parser::isLiteModeEnabled().
  • Add Parser::setDocumentType() and Parser::getDocumentType().
  • Add Parser::setDocumentRootDirectory() and Parser::getDocumentRootDirectory().
  • Add Parser::setImages() and Parser::isImageTagEnabled().
  • Add Parser::setBlockTags() and Parser::isBlockTagEnabled() (closes #138).
  • Add Parser::setLinkRelationShip() and Parser::getLinkRelationShip().
  • Add Parser::setLineWrap() and Parser::isLineWrapEnabled() (closes #139).
  • Deprecate Parser::textileThis(), Parser::textileRestricted() and Parser::textileCommon() in favour of the more versatile Parser::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

02 Jan 09:46
Compare
Choose a tag to compare

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 of Parser::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

03 Dec 10:10
Compare
Choose a tag to compare

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).