Skip to content

chore(deps): bump league/commonmark from 2.10.7 to 2.10.10 - #555

Open
dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/composer/league/commonmark-2.10.10
Open

dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/composer/league/commonmark-2.10.10

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 30, 2026

Copy link
Copy Markdown
Contributor

Bumps league/commonmark from 2.10.7 to 2.10.10.

Release notes

Sourced from league/commonmark's releases.

2.10.10

Changed

  • Improved SmartPunct performance by no longer merging the text between each pair of quotes, which quotes never move (#1181)

Fixed

  • Fixed a table row that starts another block, such as > quote | text, - item | text or # heading | text, being added to the table instead of ending it; now any block that can start there ends the table, as in GFM (#1180)
  • Fixed SmartPunct turning an unpaired " that can only close into an opening quote; for example, a 12" ruler now renders 12” instead of 12“ (#1182)
  • Fixed SmartPunct quotes at the start of link text, or right after an emphasis delimiter, being paired incorrectly; for example, ['a'](https://github.com/thephpleague/commonmark/blob/HEAD/u) now renders ‘a’ instead of ’a’ (#1181)
  • Fixed footnotes that are only referenced from unused or duplicate footnote definitions being listed, including inline footnotes with a backlink to a reference that was never rendered (#1181)
  • Fixed an unused footnote sometimes being rendered outside the footnote list (#1181)
  • Fixed an inline footnote whose generated label matched the label of another footnote, such as ^[x y] and [^x-y] or [^X-Y], losing its text and linking to the other footnote; inline footnotes now get a label no other footnote or reference uses, so an explicit [^label] no longer links to an inline footnote (#1181)
  • Fixed a footnote definition whose label contains non-ASCII characters, such as [^Über]: word, losing the first characters of its text (#1181)
  • Fixed a footnote defined inside another footnote getting a backlink to its parent's reference instead of its own, and the parent getting none (#1181)

2.10.9

Changed

  • AttributesExtension now converts attribute names to lowercase, so names differing only in case are merged like repeated names instead of being output side by side; for example, {Title=a title=b} now produces title="b" instead of Title="a" title="b" (#1176)
  • The attributes/allow configuration option is now case-insensitive; previously an entry like 'ID' or 'CLASS' never matched #id or .class (#1176)
  • Real HTML tags that follow a backslash-escaped < or a code span are no longer rendered as text when the escaped < or the code span looked like the start of inline HTML; for example, in \<!a<a href="x"> and `<!--` <b>x</b> --> the <a href="x"> and <b> are now raw HTML, as the spec requires (GHSA-jj45-w5cj-2hc8)
  • A GFM URL autolink whose regex hits a PCRE backtracking or recursion limit (only realistic for URLs over about 1MB) is now left as text, along with any later URL autolinks in the same paragraph (GHSA-jj45-w5cj-2hc8)
  • The inline parser uses much less memory on lines where inline syntax could start at nearly every character, such as long runs of [ or *; very large inputs of this kind can still exceed memory_limit

Deprecated

  • Deprecated the RegexHelper constants that are no longer used: PARTIAL_IN_DOUBLE_QUOTES, PARTIAL_IN_SINGLE_QUOTES, PARTIAL_IN_PARENS, PARTIAL_REG_CHAR, PARTIAL_IN_PARENS_NOSP, PARTIAL_BLOCKTAGNAME, PARTIAL_OPENBLOCKTAG, PARTIAL_CLOSEBLOCKTAG, PARTIAL_HTMLBLOCKOPEN and REGEX_THEMATIC_BREAK
  • Deprecated RegexHelper::PARTIAL_HTMLCOMMENT, PARTIAL_PROCESSINGINSTRUCTION, PARTIAL_CDATA, PARTIAL_HTMLTAG and PARTIAL_DECLARATION, which are no longer used; matching any of the first four against a long string without an anchor takes quadratic time when PCRE's JIT is disabled

Fixed

  • Fixed AttributesExtension allowing an attribute name written in a different case, such as {REL=opener}, {TARGET=_self} or {HREF=...}, to take precedence in browsers over the attribute set by a renderer or extension, such as the href of a link or footnote reference, the src of an image, or the rel, target and id set by ExternalLinkExtension and HeadingPermalinkExtension (#1176)
  • Fixed very long lines being parsed differently depending on their length and on whether PCRE's JIT is enabled: when a regular expression hit a PCRE limit, the error was treated as "no match". Affected thematic breaks, link destinations in <…>, link reference definition titles, email autolinks, inline HTML, and fenced code info strings (#1177)
  • Fixed front matter of about 1MB or more not being recognized, so it was rendered into the document as Markdown and getFrontMatter() returned null (#1177)
  • Fixed one very long <…> link destination or email autolink preventing later links or autolinks in the same line or paragraph from being parsed (#1177)
  • DisallowedRawHtmlExtension and allow_unsafe_links now treat a regular expression error as unsafe instead of falling back to unfiltered output (#1177)
  • Fixed a backslash-escaped backtick preventing the rest of its backtick run from opening a code span, so \foo`` rendered as literal text instead of ``foo ``
  • Fixed SmartPunct not converting a dash or ellipsis whose first character was backslash-escaped, so \--- and \.... now render as -– and .…
  • Fixed numeric character references to surrogate code points, such as &#xD800;, producing invalid UTF-8 instead of U+FFFD (#1179)
  • Fixed numeric character references to valid code points above U+2FFFF, such as &#x30000; or &#xE0041;, being replaced with U+FFFD instead of being decoded (#1179)
  • Fixed an empty list item or an ordered list not starting at 1 interrupting a paragraph that contains only link reference definitions; for example, [a]: /u followed by 2. x on the next line now produces a paragraph instead of a list (#1179)
  • Fixed an ordered list starting at 1 but written with leading zeros, such as 01., not being able to interrupt a paragraph (#1179)
  • Fixed one <…> link destination that failed to parse, for example because it contained a < or a line break, preventing every later <…> destination in the same paragraph from being parsed (#1179)
  • Fixed inline HTML comments, processing instructions, CDATA sections, ATX heading closing sequences, GFM email and URL autolinks, and footnote references taking quadratic time on certain inputs when PCRE's JIT compiler is disabled (pcre.jit=0), which could be abused to cause a denial of service (GHSA-jj45-w5cj-2hc8)
  • Fixed an inline HTML declaration followed by a long run of letters in a paragraph of about 500KB or more taking about a minute to parse with default settings (PCRE JIT enabled), which could be abused to cause a denial of service (GHSA-jj45-w5cj-2hc8)
  • Fixed a line with many www. or http:// prefixes taking quadratic time with the GFM autolink extension on PHP versions before 8.3, which could be abused to cause a denial of service (GHSA-jj45-w5cj-2hc8)
  • Fixed long URL autolinks (from about 12KB with PCRE JIT enabled) being only partly linked, or later URL autolinks on the same line being left as text, when the URL regex exceeded PCRE's limits (GHSA-jj45-w5cj-2hc8)
  • Fixed GFM email autolinks treating non-ASCII letters that match [A-Za-z] case-insensitively, such as the Kelvin sign and long s, as part of the address and swallowing the text that follows; such characters are no longer part of an address

2.10.8

Changed

  • max_delimiters_per_line now counts each delimiter character instead of each run of delimiters, so ** counts as 2 and a run of 50 underscores counts as 50; if you set a low limit, you may need to raise it
  • Attribute lists longer than 8192 bytes are no longer parsed by AttributesExtension

... (truncated)

Changelog

Sourced from league/commonmark's changelog.

[2.10.10] - 2026-11-26

Changed

  • Improved SmartPunct performance by no longer merging the text between each pair of quotes, which quotes never move (#1181)

Fixed

  • Fixed a table row that starts another block, such as > quote | text, - item | text or # heading | text, being added to the table instead of ending it; now any block that can start there ends the table, as in GFM (#1180)
  • Fixed SmartPunct turning an unpaired " that can only close into an opening quote; for example, a 12" ruler now renders 12” instead of 12“ (#1182)
  • Fixed SmartPunct quotes at the start of link text, or right after an emphasis delimiter, being paired incorrectly; for example, ['a'](https://github.com/thephpleague/commonmark/blob/2.10/u) now renders ‘a’ instead of ’a’ (#1181)
  • Fixed footnotes that are only referenced from unused or duplicate footnote definitions being listed, including inline footnotes with a backlink to a reference that was never rendered (#1181)
  • Fixed an unused footnote sometimes being rendered outside the footnote list (#1181)
  • Fixed an inline footnote whose generated label matched the label of another footnote, such as ^[x y] and [^x-y] or [^X-Y], losing its text and linking to the other footnote; inline footnotes now get a label no other footnote or reference uses, so an explicit [^label] no longer links to an inline footnote (#1181)
  • Fixed a footnote definition whose label contains non-ASCII characters, such as [^Über]: word, losing the first characters of its text (#1181)
  • Fixed a footnote defined inside another footnote getting a backlink to its parent's reference instead of its own, and the parent getting none (#1181)

[2.10.9] - 2026-11-25

Changed

  • AttributesExtension now converts attribute names to lowercase, so names differing only in case are merged like repeated names instead of being output side by side; for example, {Title=a title=b} now produces title="b" instead of Title="a" title="b" (#1176)
  • The attributes/allow configuration option is now case-insensitive; previously an entry like 'ID' or 'CLASS' never matched #id or .class (#1176)
  • Real HTML tags that follow a backslash-escaped < or a code span are no longer rendered as text when the escaped < or the code span looked like the start of inline HTML; for example, in \<!a<a href="x"> and `<!--` <b>x</b> --> the <a href="x"> and <b> are now raw HTML, as the spec requires (GHSA-jj45-w5cj-2hc8)
  • A GFM URL autolink whose regex hits a PCRE backtracking or recursion limit (only realistic for URLs over about 1MB) is now left as text, along with any later URL autolinks in the same paragraph (GHSA-jj45-w5cj-2hc8)
  • The inline parser uses much less memory on lines where inline syntax could start at nearly every character, such as long runs of [ or *; very large inputs of this kind can still exceed memory_limit

Deprecated

  • Deprecated the RegexHelper constants that are no longer used: PARTIAL_IN_DOUBLE_QUOTES, PARTIAL_IN_SINGLE_QUOTES, PARTIAL_IN_PARENS, PARTIAL_REG_CHAR, PARTIAL_IN_PARENS_NOSP, PARTIAL_BLOCKTAGNAME, PARTIAL_OPENBLOCKTAG, PARTIAL_CLOSEBLOCKTAG, PARTIAL_HTMLBLOCKOPEN and REGEX_THEMATIC_BREAK
  • Deprecated RegexHelper::PARTIAL_HTMLCOMMENT, PARTIAL_PROCESSINGINSTRUCTION, PARTIAL_CDATA, PARTIAL_HTMLTAG and PARTIAL_DECLARATION, which are no longer used; matching any of the first four against a long string without an anchor takes quadratic time when PCRE's JIT is disabled

Fixed

  • Fixed AttributesExtension allowing an attribute name written in a different case, such as {REL=opener}, {TARGET=_self} or {HREF=...}, to take precedence in browsers over the attribute set by a renderer or extension, such as the href of a link or footnote reference, the src of an image, or the rel, target and id set by ExternalLinkExtension and HeadingPermalinkExtension (#1176)
  • Fixed very long lines being parsed differently depending on their length and on whether PCRE's JIT is enabled: when a regular expression hit a PCRE limit, the error was treated as "no match". Affected thematic breaks, link destinations in <…>, link reference definition titles, email autolinks, inline HTML, and fenced code info strings (#1177)
  • Fixed front matter of about 1MB or more not being recognized, so it was rendered into the document as Markdown and getFrontMatter() returned null (#1177)
  • Fixed one very long <…> link destination or email autolink preventing later links or autolinks in the same line or paragraph from being parsed (#1177)
  • DisallowedRawHtmlExtension and allow_unsafe_links now treat a regular expression error as unsafe instead of falling back to unfiltered output (#1177)
  • Fixed a backslash-escaped backtick preventing the rest of its backtick run from opening a code span, so \foo`` rendered as literal text instead of ``foo ``
  • Fixed SmartPunct not converting a dash or ellipsis whose first character was backslash-escaped, so \--- and \.... now render as -– and .…
  • Fixed numeric character references to surrogate code points, such as &#xD800;, producing invalid UTF-8 instead of U+FFFD (#1179)
  • Fixed numeric character references to valid code points above U+2FFFF, such as &#x30000; or &#xE0041;, being replaced with U+FFFD instead of being decoded (#1179)
  • Fixed an empty list item or an ordered list not starting at 1 interrupting a paragraph that contains only link reference definitions; for example, [a]: /u followed by 2. x on the next line now produces a paragraph instead of a list (#1179)
  • Fixed an ordered list starting at 1 but written with leading zeros, such as 01., not being able to interrupt a paragraph (#1179)
  • Fixed one <…> link destination that failed to parse, for example because it contained a < or a line break, preventing every later <…> destination in the same paragraph from being parsed (#1179)
  • Fixed inline HTML comments, processing instructions, CDATA sections, ATX heading closing sequences, GFM email and URL autolinks, and footnote references taking quadratic time on certain inputs when PCRE's JIT compiler is disabled (pcre.jit=0), which could be abused to cause a denial of service (GHSA-jj45-w5cj-2hc8)
  • Fixed an inline HTML declaration followed by a long run of letters in a paragraph of about 500KB or more taking about a minute to parse with default settings (PCRE JIT enabled), which could be abused to cause a denial of service (GHSA-jj45-w5cj-2hc8)
  • Fixed a line with many www. or http:// prefixes taking quadratic time with the GFM autolink extension on PHP versions before 8.3, which could be abused to cause a denial of service (GHSA-jj45-w5cj-2hc8)
  • Fixed long URL autolinks (from about 12KB with PCRE JIT enabled) being only partly linked, or later URL autolinks on the same line being left as text, when the URL regex exceeded PCRE's limits (GHSA-jj45-w5cj-2hc8)
  • Fixed GFM email autolinks treating non-ASCII letters that match [A-Za-z] case-insensitively, such as the Kelvin sign and long s, as part of the address and swallowing the text that follows; such characters are no longer part of an address

[2.10.8] - 2026-11-24

Changed

... (truncated)

Commits
  • 3e95623 Prepare to release 2.10.10
  • 8064689 Fix SmartPunct and footnote bugs (#1181)
  • c6e7b02 Render unpaired closing double quotes as closing quotes (#1182)
  • e3d2f1f End a table at a line that starts another block, even with a pipe (#1180)
  • ab5ff8c Prepare to release 2.10.9
  • 70e3486 Merge branch 'fix/jit-off-quadratic-regexes' into 2.10
  • e2755c9 Don't attribute the PHP 8.3 behavior to a specific call
  • 6503be8 Clarify comments in InlineParserEngine
  • 190b984 Tidy wording and guard a string offset
  • 2bbc5fc Test the engine's match slots and failure handling, and URL autolink give-up
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [league/commonmark](https://github.com/thephpleague/commonmark) from 2.10.7 to 2.10.10.
- [Release notes](https://github.com/thephpleague/commonmark/releases)
- [Changelog](https://github.com/thephpleague/commonmark/blob/2.10/CHANGELOG.md)
- [Commits](thephpleague/commonmark@2.10.7...2.10.10)

---
updated-dependencies:
- dependency-name: league/commonmark
  dependency-version: 2.10.10
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants