Skip to content

v3.6.0

Compare
Choose a tag to compare
@netcarver netcarver released this 17 Nov 14:31
· 207 commits to master since this release

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.