Skip to content

Releases: thephpleague/commonmark

0.7.1

01 Mar 21:29
Compare
Choose a tag to compare

Added

  • All references can now be obtained from the ReferenceMap via listReferences() (#73)
  • Test against PHP 7.0 (nightly) but allow failures

Changed

  • ListData::$start now defaults to null instead of 0 (#74)
  • Replace references to HtmlRenderer with new HtmlRendererInterface

Fixed

  • Fixed 0-based ordered lists starting at 1 instead of 0 (#74)
  • Fixed errors parsing multi-byte characters (#78 and #79)

0.7.0

17 Feb 00:02
Compare
Choose a tag to compare

Now with 50% more speed!

Added

  • More unit tests to increase code coverage

Changed

  • Enabled the InlineParserEngine to parse several non-special characters at once (performance boost)
  • NewlineParser no longer attempts to parse spaces; look-behind is used instead (major performance boost)
  • Moved closeUnmatchedBlocks into its own class
  • Image and link elements now extend AbstractInlineContainer; label data is stored via $inlineContents instead
  • Renamed AbstractInlineContainer::$inlineContents and its getter/setter

Removed

  • Removed the InlineCollection class
  • Removed the unused ArrayCollection::splice() method
  • Removed impossible-to-reach code in Cursor::advanceToFirstNonSpace
  • Removed unnecessary test from the InlineParserEngine
  • Removed unnecessary/unused RegexHelper::getMainRegex() method

0.6.1

25 Jan 16:09
Compare
Choose a tag to compare

Changed

  • Bumped spec target version to 0.17
  • Updated emphasis parsing for underscores to prevent intra-word emphasis
  • Defered closing of fenced code blocks

0.6.0

09 Jan 19:33
Compare
Choose a tag to compare

Added

  • Bulk registration of parsers/renderers via extensions (#45)
  • Proper UTF-8 support, especially in the Cursor; mbstring extension is now required (#49)
  • Environment is now configurable; options can be accessed in its parsers/renderers (#56)
  • Added some unit tests

Changed

  • Bumped spec target version to 0.15 (#50)
  • Parsers/renderers are now lazy-initialized (#52)
  • Some private elements are now protected for easier extending, especially on Element classes (#53)
  • Renderer option names changed from underscore_case to camelCase (#56)
  • Moved CommonMark parser/render definitions into CommonMarkCoreExtension

Fixed

  • Improved parsing of emphasis around punctuation
  • Improved regexes for CDATA and HTML comments
  • Fixed issue with HTML content that is considered false in loose comparisons, like '0' (#55)
  • Fixed DocParser trying to add empty strings to closed containers (#58)
  • Fixed incorrect use of a null parameter value in the HtmlElementTest

Removed

  • Removed unused ReferenceDefinition* classes (#51)
  • Removed UnicodeCaseFolder in favor of mb_strtoupper

0.5.1

27 Dec 15:59
Compare
Choose a tag to compare

Fixed

  • Fixed infinite loop and link-in-link-in-image parsing (#37)

Removed

  • Removed hard dependency on mbstring extension; workaround used if not installed (#38)

0.5.0

24 Dec 22:53
Compare
Choose a tag to compare

Added

  • Support for custom directives, parsers, and renderers

Changed

  • Major refactoring to de-couple directives from the parser, support custom directive functionality, and reduce complexity
  • Updated references to stmd.js in README and docblocks
  • Modified CHANGELOG formatting
  • Improved travis configuration
  • Put tests in autoload-dev

Fixed

  • Fixed CommonMarkConverter re-creating object each time new text is converted (#26)

Removed

  • Removed dependency on symfony/options-resolver (fixes #20)

0.4.0

16 Dec 03:42
Compare
Choose a tag to compare
  • Changed namespace to League\CommonMark
  • Made compatible with spec version 0.13
  • Moved delimiter stack functionality into seperate class
  • Fixed regex which caused HHVM tests to fail
  • Added some missing copyright info