Skip to content

v3.5.2

Compare
Choose a tag to compare
@gocom gocom released this 25 Oct 22:16
· 613 commits to master since this release

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.