Skip to content

Releases: thephpleague/commonmark

0.15.6

Choose a tag to compare

@colinodell colinodell released this 08 Aug 11:48

Fixed

  • Fixed URI normalization not properly encoding/decoding special characters in certain cases (#287)

0.15.5

Choose a tag to compare

@colinodell colinodell released this 05 Aug 19:42

This release bumps spec compliance to 0.28 without breaking changes to the API.

Added

  • Project is now tested against PHP 7.2

Changed

  • Bumped CommonMark spec target to 0.28
  • Changed internal implementation of LinkParserHelper::parseLinkDestination() to allow nested parens
  • Changed precedence of strong/emph when both nestings are possible (rule 14)
  • Allow tabs before and after ATX closing header

Fixed

  • Fixed HTML type 6 block regex matching against <pre> (it shouldn't) and not matching <iframe> (it should)
  • Fixed reference parser incorrectly handling escaped ] characters
  • Fixed "multiple of 3" delimiter run calculations

Deprecated

An unused constant and static method were deprecated and will be removed in a future release. See <UPGRADE.md> for more information.

  • Deprecated RegexHelper::REGEX_UNICODE_WHITESPACE (no longer used)
  • Deprecated RegexHelper::getLinkDestinationRegex() (no longer used)

0.15.4

Choose a tag to compare

@colinodell colinodell released this 09 May 12:48

Added

  • Added new methods to Cursor (#280):
    • advanceToNextNonSpaceOrNewline() - Identical replacement for the (now-deprecated) advanceToFirstNonSpace() method
    • advanceToNextNonSpaceOrTab() - Similar replacement for advanceToFirstNonSpace() but with proper tab handling
    • getNextNonSpaceCharacter() - Identical replacement for the (now-deprecated) getFirstNonSpaceCharacter() method
    • getNextNonSpacePosition() - Identical replacement for the (now-deprecated) getFirstNonSpacePosition() method
  • Added new method to CursorState (#280):
    • getNextNonSpaceCache() - Identical replacement for the (now-deprecated) getFirstNonSpaceCache() method

Fixed

  • Fixed duplicate characters in non-intended lines containing tabs (#279)

Deprecated

All deprecations listed here will be removed in a future 0.x release. See UPGRADE.md for instructions on preparing your code for the eventual removal of these methods.

  • Deprecated Cursor::advanceToFirstNonSpace() (#280)
    • Use advanceToNextNonSpaceOrTab() or advanceToNextNonSpaceOrNewline() instead, depending on your requirements
  • Deprecated Cursor::getFirstNonSpaceCharacter() (#280)
    • Use Cursor::getNextNonSpaceCharacter() instead
  • Deprecated Cursor::getFirstNonSpacePosition() (#280)
    • Use Cursor::getNextNonSpacePosition() instead
  • Deprecated CursorState::getFirstNonSpaceCache() (#280)
    • Use CursorState::getNextNonSpaceCache() instead

0.15.3

Choose a tag to compare

@colinodell colinodell released this 19 Dec 00:16

Fixed

  • Allow inline parsers matching regex delimiter to be created (#271, #272)

0.15.2

Choose a tag to compare

@colinodell colinodell released this 22 Nov 17:32

Changed

  • Bumped spec target version to 0.27 (#268)
  • H2-H6 elements are now parsed as HTML block elements instead of HTML inlines

Fixed

  • Fixed incomplete punctuation regex
  • Fixed shortcut links not being allowed before a (
  • Fixed distinction between Unicode whitespace and regular whitespace

0.15.1

Choose a tag to compare

@colinodell colinodell released this 08 Nov 15:29

Fixed

  • Fixed setext heading underlines not allowing trailing tabs (#266)

0.15.0

Choose a tag to compare

@colinodell colinodell released this 14 Sep 15:45

Added

  • Added preliminary support for PHP 7.1 (#259)
  • Added more regression tests (#258, #260)

Changed

  • Bumped spec target version to 0.26 (#260)
  • The CursorState constructor requires an additional parameter (#258)
  • Ordered lists cannot interupt a paragraph unless they start with 1 (#260)
  • Blank list items cannot interupt a paragraph (#260)

Deprecated

  • Deprecated DelimiterStack::findFirstMatchingOpener() - use findMatchingOpener() instead (#260)

Fixed

  • Fixed tabs in ATX headers and thematic breaks (#260)
  • Fixed issue where cursor state was not being restored properly (#258, #260)
    • This fixed the lists-with-tabs regression reported in #258

Removed

  • Removed an unnecessary check in Cursor::advanceBy() (#260)
  • Removed the two-blanks-break-out-of-lists feature (#260)

0.14.0

Choose a tag to compare

@colinodell colinodell released this 02 Jul 18:56

Added

  • The safe option is deprecated and replaced by 2 new options (#253, #255):
    • html_input (strip, allow or escape): how to handle untrusted HTML input (the default is strip for BC reasons)
    • allow_unsafe_links (true or false): whether to allow risky image URLs and links (the default is true for BC reasons)

Deprecated

  • The safe option is now deprecated and will be removed in the 1.0.0 release.

0.13.4

Choose a tag to compare

@colinodell colinodell released this 14 Jun 14:59

Fixed

  • Fixed path to autoload.php within bin/commonmark (#250)

0.13.3

Choose a tag to compare

@colinodell colinodell released this 21 May 18:41

Added

  • Added setUrl() method for Link and Image elements (#227, #244)
  • Added cebe/markdown to the benchmark tool (#245)