Skip to content

Releases: textile/php-textile

v3.5.4

05 Nov 20:36
Compare
Choose a tag to compare

This release fixes multiple issues with PHP-Textile library and its formatting features. Changes:

  • Fix broken image alignment in HTML5 mode (closes #123).
  • Fix duplicate HTML IDs that occur when a footnote isn't referenced in the content (closes #125).
  • Don't include image alignment to the URL in restricted mode.
  • Detect and process quoted quote symbols.
  • New link parser (closes #86, #87 and #128).

Install using Composer:

$ composer require "netcarver/textile 3.5.4"

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

v2.5.4

05 Nov 20:34
Compare
Choose a tag to compare

This release fixes multiple issues with Textile library and its formatting features. This is the final feature release for the legacy 2.5.x series. From 2.5.4 onwards, 2.5.x will only receive critical security fixes and patches, while 3.x is moving forwards.

Changes:

  • Fix broken image alignment in HTML5 mode (closes #123).
  • Fix duplicate HTML IDs that occur when a footnote isn't referenced in the content (#125).
  • Don't include image alignment to the URL in restricted mode.
  • Detect and process quoted quote symbols.
  • New link parser (closes #86, #87 and #128).

Install using Composer:

$ composer require "netcarver/textile 2.5.4"

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

v3.5.3

30 Oct 20:14
Compare
Choose a tag to compare

This release fixes multiple issues with Textile library and its formatting features. Changes:

  • Fix double image URL encoding (closes #102)
  • Fix URL reference token spoofing.
  • Fix broken parser output when $strict argument was set to TRUE (closes #119).
  • Fix memory leaking tag cache. Tag cache is never reset between textileThis() and textileRestricted() calls referencing the same instance.
  • Fix rare instances where a link displays a wrong URL mentioned elsewhere in the document.
  • Fix invalid markup generated when Redcloth-style definition list is used inside a table cell.
  • Link aliases follow same allowed URL schemes as normal links.
  • Update hasRawText() and fPBr() to detect a wider range of raw HTML and XHTML.
  • Unify attribute order with Redcloth.
  • Reduce list and blockquote indentation level to match paragraphs and other block tags.
  • Restrict how spans are parsed (closes #106).
  • Fix citations on spans (closes #120).
  • Refactors parseAttribsToArray() slightly.

Install using Composer:

$ composer require "netcarver/textile 3.5.3"

Textile v3.5.3 requires PHP 5.3.0 or newer.

v2.5.3

30 Oct 20:15
Compare
Choose a tag to compare

This release fixes multiple issues with Textile library and its formatting features. Changes:

  • Fix double image URL encoding (closes #102)
  • Fix URL reference token spoofing.
  • Fix broken parser output when $strict argument was set to TRUE (closes #119).
  • Fix memory leaking tag cache. Tag cache is never reset between textileThis() and textileRestricted() calls referencing the same instance.
  • Fix rare instances where a link displays a wrong URL mentioned elsewhere in the document.
  • Fix invalid markup generated when Redcloth-style definition list is used inside a table cell.
  • Link aliases follow same allowed URL schemes as normal links.
  • Update hasRawText() and fPBr() to detect a wider range of raw HTML and XHTML.
  • Unify attribute order with Redcloth.
  • Reduce list and blockquote indentation level to match paragraphs and other block tags.
  • Restrict how spans are parsed (closes #106).
  • Fix citations on spans (closes #120).
  • Refactors parseAttribsToArray() slightly.

Install using Composer:

$ composer require "netcarver/textile 2.5.3"

Textile v2.5.3 requires PHP 5.0.0 or newer.

v3.5.2

25 Oct 22:16
Compare
Choose a tag to compare

This release fixes multiple issues with Textile library and its formatting features. Changes:

  • Improved support for Redcloth-style definition lists.
  • Fix incorrectly rendered rel attributes (closes #103).
  • Fix getSymbol() so it actually returns the named symbol (closes #104).
  • Fix unicode link aliases that were broken on some PCRE_UTF8 supporting systems.
  • Fix collapsing whitespace and preserve newlines. Preserves whitespace inside long bc, notextile and pre blocks, rather than collapsing two or more empty lines down to one. Renders whitespace as it was defined, rather than using hard-coded single LF to separate lines (closes #109 and #111).
  • Fix the number of code tags rendered inside long code blocks (closes #116).
  • Fix token spoofing from the document body by randomizing token references (closes #115).
  • Add image dimensions to images even when Textile is run on command line. On CLI, images are looked from the current working directory.
  • Define internal class properties as protected rather than at all, causing them to be created as public.
  • Move internal property definitions from the constructor to class definition.
  • Added runnable PHPUnit tests, integration with Travis CI
  • Removed error suppression, the code doesn't intentionally produce notices.
  • Add br tags to headings instead of leaving linebreaks untouched.

Install using Composer:

$ composer require "netcarver/textile 3.5.2"

Textile v3.5.2 requires PHP 5.3.0 or newer.

v2.5.2

25 Oct 22:17
Compare
Choose a tag to compare

This release fixes multiple issues with Textile library and its formatting features. Changes:

  • Improved support for Redcloth-style definition lists.
  • Fix incorrectly rendered rel attributes (closes #103).
  • Fix getSymbol() so it actually returns the named symbol (closes #104).
  • Fix unicode link aliases that were broken on some PCRE_UTF8 supporting systems.
  • Fix collapsing whitespace and preserve newlines. Preserves whitespace inside long bc, notextile and pre blocks, rather than collapsing two or more empty lines down to one. Renders whitespace as it was defined, rather than using hard-coded single LF to separate lines (closes #109 and #111).
  • Fix the number of code tags rendered inside long code blocks (closes #116).
  • Fix token spoofing from the document body by randomizing token references (closes #115).
  • Add image dimensions to images even when Textile is run on command line. On CLI, images are looked from the current working directory.
  • Define internal class properties as protected rather than at all, causing them to be created as public.
  • Move internal property definitions from the constructor to class definition.
  • Added runnable PHPUnit tests, integration with Travis CI
  • Removed error suppression, the code doesn't intentionally produce notices.
  • Add br tags to headings instead of leaving linebreaks untouched.

Install using Composer:

$ composer require "netcarver/textile 2.5.2"

Textile v2.5.2 requires PHP 5.0.0 or newer.

v3.5.1

26 Oct 11:09
Compare
Choose a tag to compare

This release fixes issues introduces in v3.5.0 and allows disabling image dimensions. Changes:

  • Remove horizontal alignment from inline elements (closes #66).
  • Reinstate automatic generation of image width and height generation for relative images (closes #101).
  • Add setDimensionlessImages() and getDimensionlessImages() to suppress width and height generation for relative images and better support content for responsive layouts (closes #100).
  • Allow "." in class attributes (closes #97).

Install using Composer:

$ composer require "netcarver/textile 3.5.1"

Textile v2.5.1 requires PHP 5.3.0 or newer.

v2.5.1

26 Oct 11:08
Compare
Choose a tag to compare

This release fixes issues introduces in v2.5.0 and allows disabling image dimensions. Changes:

  • Remove horizontal alignment from inline elements (closes #66).
  • Reinstate automatic generation of image width and height generation for relative images (closes #101).
  • Add setDimensionlessImages() and getDimensionlessImages() to suppress width and height generation for relative images and better support content for responsive layouts (closes #100).
  • Allow "." in class attributes (closes #97).

Install using Composer:

$ composer require "netcarver/textile 2.5.1"

Textile v2.5.1 requires PHP 5.0.0 or newer.

v3.5.0

26 Oct 10:58
Compare
Choose a tag to compare

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 calling textileThis() with the $encode flag.
  • PSR-0, PSR-1 and PSR-2 conformity added.
  • Dropped Textile's PHP4 heritage and moved over to using a __construct() method.

Install using Composer:

$ composer require "netcarver/textile 3.5.0"

Textile v3.5.0 requires PHP 5.3.0 or newer.

v2.5.0

26 Oct 11:02
Compare
Choose a tag to compare

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 calling textileThis() 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.