@netcarver netcarver released this Nov 17, 2016 · 12 commits to master since this release

Assets 2

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.

@netcarver netcarver released this Jan 2, 2014 · 153 commits to master since this release

Assets 3

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.

@gocom gocom released this Dec 3, 2013 · 658 commits to master since this release

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

@gocom gocom released this Dec 2, 2013 · 658 commits to master since this release

Assets 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:

  • Fix PHP 5.5 compatibility. Resolve E_DEPRECATED messages and drop e regular expression modifier.
  • Fix suppressed notices.

Install using Composer:

$ composer require "netcarver/textile 2.4.2"

PHP-Textile v2.4.2 requires PHP 4.4.9 or newer (supports PHP 5.x).

@netcarver netcarver released this Nov 5, 2013 · 286 commits to master since this release

Assets 3

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.

@netcarver netcarver released this Nov 5, 2013 · 541 commits to master since this release

Assets 3

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.

@netcarver netcarver released this Oct 30, 2013 · 348 commits to master since this release

Assets 3

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.

@netcarver netcarver released this Oct 30, 2013 · 541 commits to master since this release

Assets 3

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.

@gocom gocom released this Oct 25, 2013 · 417 commits to master since this release

Assets 3

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.

@gocom gocom released this Oct 25, 2013 · 541 commits to master since this release

Assets 3

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.