Releases: textile/php-textile
Releases · textile/php-textile
v4.0.0
v3.8.0
- Added
Parser::setAlignClasses()
andParser::isAlignClassesEnabled()
. This can be used to enable img alignment classes in XHTML output document mode, instead of the default align attribute. - Added
Parser::DOCTYPE_HTML5
andParser::DOCTYPE_XHTML
constants. These can be used withParser::setDocumentType()
to specify the output document type.
v3.7.7
- Fix deprecation errors that appear on PHP >= 8.1 about preg_split limit argument's NULL value.
v3.7.6
v3.7.5
v3.7.4
v3.7.3
v3.7.2
v3.7.1
v3.7.0
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()
andParser::getLinkPrefix()
(closes #169). - Add
Parser::setRawBlocks()
andParser::isRawBlocksEnabled()
. - Deprecate
Parser::setRelativeImagePrefix()
andParser::$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.