Update dependency league/commonmark to v2.5.3 #72

Merged
l4p1n merged 1 commit from renovate/league-commonmark-2.x into trunk 2024-08-23 22:49:12 +02:00
Collaborator

This PR contains the following updates:

Package Type Update Change
league/commonmark (source) require minor 2.3.5 -> 2.5.3

Release Notes

thephpleague/commonmark (league/commonmark)

v2.5.3

Compare Source

Changed
  • Made compatible with CommonMark spec 0.31.1, including:
    • Remove source, add search to list of recognized block tags

v2.5.2

Compare Source

Changed
  • Boolean attributes now require an explicit true value (#​1040)
Fixed
  • Fixed regression where text could be misinterpreted as an attribute (#​1040)

v2.5.1

Compare Source

Fixed
  • Fixed attribute parsing incorrectly parsing mustache-like syntax (#​1035)
  • Fixed incorrect Table start line numbers (#​1037)

v2.5.0

Compare Source

Added
  • The AttributesExtension now supports attributes without values (#​985, #​986)
  • The AutolinkExtension exposes two new configuration options to override the default behavior (#​969, #​987):
    • autolink/allowed_protocols - an array of protocols to allow autolinking for
    • autolink/default_protocol - the default protocol to use when none is specified
Changed
  • Made compatible with CommonMark spec 0.31.0, including:
    • Allow closing fence to be followed by tabs
    • Remove restrictive limitation on inline comments
    • Unicode symbols now treated like punctuation (for purposes of flankingness)
    • Trailing tabs on the last line of indented code blocks will be excluded
    • Improved HTML comment matching
  • Paragraphs only containing link reference definitions will be kept in the AST until the Document is finalized
    • (These were previously removed immediately after parsing the Paragraph)
Fixed
  • Fixed list tightness not being determined properly in some edge cases
  • Fixed incorrect ending line numbers for several block types in various scenarios
  • Fixed lowercase inline HTML declarations not being accepted

v2.4.4

Compare Source

Fixed
  • Fixed SmartPunct extension changing already-formatted quotation marks (#​1030)

v2.4.3

Compare Source

Fixed
  • Fixed the Attributes extension not supporting CSS level 3 selectors (#​1013)
  • Fixed UrlAutolinkParser incorrectly parsing text containing www anywhere before an autolink (#​1025)

v2.4.2

Compare Source

Fixed
  • Fixed declaration parser being too strict
  • FencedCodeRenderer: don't add language- to class if already prefixed

v2.4.1

Compare Source

Fixed
  • Fixed ExternalLinkProcessor not fully disabling the rel attribute when configured to do so (#​992)

v2.4.0

Compare Source

Added
  • Added generic CommonMarkException marker interface for all exceptions thrown by the library
  • Added several new specific exception types implementing that marker interface:
    • AlreadyInitializedException
    • InvalidArgumentException
    • IOException
    • LogicException
    • MissingDependencyException
    • NoMatchingRendererException
    • ParserLogicException
  • Added more configuration options to the Heading Permalinks extension (#​939):
    • heading_permalink/apply_id_to_heading - When true, the id attribute will be applied to the heading element itself instead of the <a> tag
    • heading_permalink/heading_class - class to apply to the heading element
    • heading_permalink/insert - now accepts none to prevent the creation of the <a> link
  • Added new table/alignment_attributes configuration option to control how table cell alignment is rendered (#​959)
Changed
  • Change several thrown exceptions from RuntimeException to LogicException (or something extending it), including:
    • CallbackGenerators that fail to set a URL or return an expected value
    • MarkdownParser when deactivating the last block parser or attempting to get an active block parser when they've all been closed
    • Adding items to an already-initialized Environment
    • Rendering a Node when no renderer has been registered for it
  • HeadingPermalinkProcessor now throws InvalidConfigurationException instead of RuntimeException when invalid config values are given.
  • HtmlElement::setAttribute() no longer requires the second parameter for boolean attributes
  • Several small micro-optimizations
  • Changed Strikethrough to only allow 1 or 2 tildes per the updated GFM spec
Fixed
  • Fixed inaccurate @throws docblocks throughout the codebase, including ConverterInterface, MarkdownConverter, and MarkdownConverterInterface.
    • These previously suggested that only \RuntimeExceptions were thrown, which was inaccurate as \LogicExceptions were also possible.

v2.3.9

Compare Source

Fixed
  • Fixed autolink extension not detecting some URIs with underscores (#​956)

v2.3.8

Compare Source

Fixed
  • Fixed parsing issues when mb_internal_encoding() is set to something other than UTF-8 (#​951)

v2.3.7

Compare Source

Fixed
  • Fixed TaskListItemMarkerRenderer not including HTML attributes set on the node by other extensions (#​947)

v2.3.6

Compare Source

Fixed
  • Fixed unquoted attribute parsing when closing curly brace is followed by certain characters (like a .) (#​943)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [league/commonmark](https://commonmark.thephpleague.com) ([source](https://github.com/thephpleague/commonmark)) | require | minor | `2.3.5` -> `2.5.3` | --- ### Release Notes <details> <summary>thephpleague/commonmark (league/commonmark)</summary> ### [`v2.5.3`](https://github.com/thephpleague/commonmark/blob/HEAD/CHANGELOG.md#253---2024-08-16) [Compare Source](https://github.com/thephpleague/commonmark/compare/2.5.2...2.5.3) ##### Changed - Made compatible with CommonMark spec 0.31.1, including: - Remove `source`, add `search` to list of recognized block tags ### [`v2.5.2`](https://github.com/thephpleague/commonmark/blob/HEAD/CHANGELOG.md#252---2024-08-14) [Compare Source](https://github.com/thephpleague/commonmark/compare/2.5.1...2.5.2) ##### Changed - Boolean attributes now require an explicit `true` value ([#&#8203;1040](https://github.com/thephpleague/commonmark/issues/1040)) ##### Fixed - Fixed regression where text could be misinterpreted as an attribute ([#&#8203;1040](https://github.com/thephpleague/commonmark/issues/1040)) ### [`v2.5.1`](https://github.com/thephpleague/commonmark/blob/HEAD/CHANGELOG.md#251---2024-07-24) [Compare Source](https://github.com/thephpleague/commonmark/compare/2.5.0...2.5.1) ##### Fixed - Fixed attribute parsing incorrectly parsing mustache-like syntax ([#&#8203;1035](https://github.com/thephpleague/commonmark/issues/1035)) - Fixed incorrect `Table` start line numbers ([#&#8203;1037](https://github.com/thephpleague/commonmark/issues/1037)) ### [`v2.5.0`](https://github.com/thephpleague/commonmark/blob/HEAD/CHANGELOG.md#250---2024-07-22) [Compare Source](https://github.com/thephpleague/commonmark/compare/2.4.4...2.5.0) ##### Added - The `AttributesExtension` now supports attributes without values ([#&#8203;985](https://github.com/thephpleague/commonmark/issues/985), [#&#8203;986](https://github.com/thephpleague/commonmark/issues/986)) - The `AutolinkExtension` exposes two new configuration options to override the default behavior ([#&#8203;969](https://github.com/thephpleague/commonmark/issues/969), [#&#8203;987](https://github.com/thephpleague/commonmark/issues/987)): - `autolink/allowed_protocols` - an array of protocols to allow autolinking for - `autolink/default_protocol` - the default protocol to use when none is specified ##### Changed - Made compatible with CommonMark spec 0.31.0, including: - Allow closing fence to be followed by tabs - Remove restrictive limitation on inline comments - Unicode symbols now treated like punctuation (for purposes of flankingness) - Trailing tabs on the last line of indented code blocks will be excluded - Improved HTML comment matching - `Paragraph`s only containing link reference definitions will be kept in the AST until the `Document` is finalized - (These were previously removed immediately after parsing the `Paragraph`) ##### Fixed - Fixed list tightness not being determined properly in some edge cases - Fixed incorrect ending line numbers for several block types in various scenarios - Fixed lowercase inline HTML declarations not being accepted ### [`v2.4.4`](https://github.com/thephpleague/commonmark/blob/HEAD/CHANGELOG.md#244---2024-07-22) [Compare Source](https://github.com/thephpleague/commonmark/compare/2.4.3...2.4.4) ##### Fixed - Fixed SmartPunct extension changing already-formatted quotation marks ([#&#8203;1030](https://github.com/thephpleague/commonmark/issues/1030)) ### [`v2.4.3`](https://github.com/thephpleague/commonmark/blob/HEAD/CHANGELOG.md#243---2024-07-22) [Compare Source](https://github.com/thephpleague/commonmark/compare/2.4.2...2.4.3) ##### Fixed - Fixed the Attributes extension not supporting CSS level 3 selectors ([#&#8203;1013](https://github.com/thephpleague/commonmark/issues/1013)) - Fixed `UrlAutolinkParser` incorrectly parsing text containing `www` anywhere before an autolink ([#&#8203;1025](https://github.com/thephpleague/commonmark/issues/1025)) ### [`v2.4.2`](https://github.com/thephpleague/commonmark/blob/HEAD/CHANGELOG.md#242---2024-02-02) [Compare Source](https://github.com/thephpleague/commonmark/compare/2.4.1...2.4.2) ##### Fixed - Fixed declaration parser being too strict - `FencedCodeRenderer`: don't add `language-` to class if already prefixed ### [`v2.4.1`](https://github.com/thephpleague/commonmark/blob/HEAD/CHANGELOG.md#241---2023-08-30) [Compare Source](https://github.com/thephpleague/commonmark/compare/2.4.0...2.4.1) ##### Fixed - Fixed `ExternalLinkProcessor` not fully disabling the `rel` attribute when configured to do so ([#&#8203;992](https://github.com/thephpleague/commonmark/issues/992)) ### [`v2.4.0`](https://github.com/thephpleague/commonmark/blob/HEAD/CHANGELOG.md#240---2023-03-24) [Compare Source](https://github.com/thephpleague/commonmark/compare/2.3.9...2.4.0) ##### Added - Added generic `CommonMarkException` marker interface for all exceptions thrown by the library - Added several new specific exception types implementing that marker interface: - `AlreadyInitializedException` - `InvalidArgumentException` - `IOException` - `LogicException` - `MissingDependencyException` - `NoMatchingRendererException` - `ParserLogicException` - Added more configuration options to the Heading Permalinks extension ([#&#8203;939](https://github.com/thephpleague/commonmark/issues/939)): - `heading_permalink/apply_id_to_heading` - When `true`, the `id` attribute will be applied to the heading element itself instead of the `<a>` tag - `heading_permalink/heading_class` - class to apply to the heading element - `heading_permalink/insert` - now accepts `none` to prevent the creation of the `<a>` link - Added new `table/alignment_attributes` configuration option to control how table cell alignment is rendered ([#&#8203;959](https://github.com/thephpleague/commonmark/issues/959)) ##### Changed - Change several thrown exceptions from `RuntimeException` to `LogicException` (or something extending it), including: - `CallbackGenerator`s that fail to set a URL or return an expected value - `MarkdownParser` when deactivating the last block parser or attempting to get an active block parser when they've all been closed - Adding items to an already-initialized `Environment` - Rendering a `Node` when no renderer has been registered for it - `HeadingPermalinkProcessor` now throws `InvalidConfigurationException` instead of `RuntimeException` when invalid config values are given. - `HtmlElement::setAttribute()` no longer requires the second parameter for boolean attributes - Several small micro-optimizations - Changed Strikethrough to only allow 1 or 2 tildes per the updated GFM spec ##### Fixed - Fixed inaccurate `@throws` docblocks throughout the codebase, including `ConverterInterface`, `MarkdownConverter`, and `MarkdownConverterInterface`. - These previously suggested that only `\RuntimeException`s were thrown, which was inaccurate as `\LogicException`s were also possible. ### [`v2.3.9`](https://github.com/thephpleague/commonmark/blob/HEAD/CHANGELOG.md#239---2023-02-15) [Compare Source](https://github.com/thephpleague/commonmark/compare/2.3.8...2.3.9) ##### Fixed - Fixed autolink extension not detecting some URIs with underscores ([#&#8203;956](https://github.com/thephpleague/commonmark/issues/956)) ### [`v2.3.8`](https://github.com/thephpleague/commonmark/blob/HEAD/CHANGELOG.md#238---2022-12-10) [Compare Source](https://github.com/thephpleague/commonmark/compare/2.3.7...2.3.8) ##### Fixed - Fixed parsing issues when `mb_internal_encoding()` is set to something other than `UTF-8` ([#&#8203;951](https://github.com/thephpleague/commonmark/issues/951)) ### [`v2.3.7`](https://github.com/thephpleague/commonmark/blob/HEAD/CHANGELOG.md#237---2022-11-03) [Compare Source](https://github.com/thephpleague/commonmark/compare/2.3.6...2.3.7) ##### Fixed - Fixed `TaskListItemMarkerRenderer` not including HTML attributes set on the node by other extensions ([#&#8203;947](https://github.com/thephpleague/commonmark/issues/947)) ### [`v2.3.6`](https://github.com/thephpleague/commonmark/blob/HEAD/CHANGELOG.md#236---2022-10-30) [Compare Source](https://github.com/thephpleague/commonmark/compare/2.3.5...2.3.6) ##### Fixed - Fixed unquoted attribute parsing when closing curly brace is followed by certain characters (like a `.`) ([#&#8203;943](https://github.com/thephpleague/commonmark/issues/943)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xOTQuMCIsInVwZGF0ZWRJblZlciI6IjM4LjUxLjAiLCJ0YXJnZXRCcmFuY2giOiJ0cnVuayJ9-->
professeur-chen force-pushed renovate/league-commonmark-2.x from ed6187f9d9 to 9a0e843753 2024-07-31 11:08:54 +02:00 Compare
professeur-chen changed title from Update dependency league/commonmark to v2.4.2 to Update dependency league/commonmark to v2.5.1 2024-07-31 11:08:55 +02:00
professeur-chen force-pushed renovate/league-commonmark-2.x from 9a0e843753 to 8034d6943f 2024-08-14 13:08:54 +02:00 Compare
professeur-chen changed title from Update dependency league/commonmark to v2.5.1 to Update dependency league/commonmark to v2.5.2 2024-08-14 13:08:56 +02:00
professeur-chen force-pushed renovate/league-commonmark-2.x from 8034d6943f to 350dd83229 2024-08-16 14:08:55 +02:00 Compare
professeur-chen changed title from Update dependency league/commonmark to v2.5.2 to Update dependency league/commonmark to v2.5.3 2024-08-16 14:08:56 +02:00
professeur-chen force-pushed renovate/league-commonmark-2.x from 350dd83229 to e7c731a514 2024-08-23 22:48:04 +02:00 Compare
l4p1n merged commit 42287afeca into trunk 2024-08-23 22:49:12 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
l4p1n-bot/website!72
No description provided.