Update CommonMark packages to v0.32.0 #566

Open
renovate-bot wants to merge 1 commit from renovate/commonmark-packages into main
Collaborator

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
org.commonmark:commonmark-ext-gfm-tables 0.28.0 -> 0.32.0 age adoption passing confidence
org.commonmark:commonmark-ext-gfm-strikethrough 0.28.0 -> 0.32.0 age adoption passing confidence
org.commonmark:commonmark-ext-gfm-alerts 0.28.0 -> 0.32.0 age adoption passing confidence
org.commonmark:commonmark-ext-footnotes 0.28.0 -> 0.32.0 age adoption passing confidence
org.commonmark:commonmark-ext-autolink 0.28.0 -> 0.32.0 age adoption passing confidence
org.commonmark:commonmark 0.28.0 -> 0.32.0 age adoption passing confidence

⚠️ Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

commonmark/commonmark-java (org.commonmark:commonmark-ext-gfm-tables)

v0.32.0

Added
  • Scanner API for extensions now has findPrev methods to search backwards,
    which can be useful for some syntax (#​466)
Changed
  • Fix Android incompatibility with minSdk < 30: The minSdk required is now 24.
Fixed
  • Allow consecutive question marks in inline processing instructions (#​471)
  • Allow HTML declarations with lowercase letters and without whitespace (#​469)
  • Reject link reference definitions with unbalanced parentheses in the destination (#​470)
  • Don't let lists interrupt a paragraph with only link reference definitions (#​472)
  • MarkdownRenderer: Preserve literal ampersands in links and images (#​468)

v0.31.0

Changed
  • To get link text in LinkProcessor, Scanner needs to be passed to
    LinkInfo#text now
Fixed
  • Correctly parse unclosed titles for link reference definitions, fix source
    spans in resulting paragraph (#​460)
  • Keep partially consumed tab when an HTML block starts or continues in a block quote (#​462)
  • Make list loose for blank line after HTML block or indented code (#​463)
  • Allow info string of fenced code to start with the other fence character (#​464)
  • Fix quadratic runtime for a large number of lines in a single paragraph
    starting with potential block opening characters
  • Fix quadratic runtime for parsing deeply nested image brackets

v0.30.1

Changed
  • Improve MarkdownRenderer performance by appending unescaped spans in bulk (#​456)
Fixed
  • Fix parsing code spans after an unclosed backtick string; a regression that
    was introduced in the previous version (0.30.0) (#​459)

v0.30.0

Added
  • New option lineSeparator for MarkdownRenderer.Builder to change the default line
    separator from \n (e.g. to \r\n) (#​442)
  • YAML front matter extension: Support extracting the raw YAML content so that you can
    do the YAML parsing using a library (instead of the limited built-in parsing) (#​391)
Changed
  • Tables extension: Limit max number of parsed table cells by default (1 million cells),
    see option maxCells in TablesExtension.Builder. Parsing will throw an error if the
    limit would be exceeded, to protect against malicious input.
  • The default for maxOpenBlockParsers for Parser.Builder is now 100; configure the
    option to remove the limit.
  • Limit how deeply inline nodes may nest by default (100), see option maxInlineNesting in
    Parser.Builder; configure the option to remove the limit. This covers emphasis-like
    delimiters (e.g. * or the ins extension's +) as well as images, which can otherwise
    nest arbitrarily deep for a small amount of input. Anything over the limit is treated as
    plain text instead.
Fixed
  • Fix quadratic runtime on various pathological inputs (where inline syntax to start a
    node is used repeatedly but never finished):
    • Inline HTML like "x <!--".repeat(100_000) (#​447)
    • Autolink starts like "<".repeat(100_000)
    • Emphasis like "a**b" + "c* ".repeat(100_000)
    • Backticks runs of different lengths
  • Fix stack overflow errors when parsing pathological inputs with repeated syntax:
    • HTML block attributes
    • Autolink email addresses
    • Deeply nested emphasis
  • Fix stack overflow error when rendering/visiting deeply nested inline nodes, by capping nesting
    depth during parsing (see maxInlineNesting above). This can happen with emphasis, e.g.
    "*".repeat(n) + "x" + "*".repeat(n) or "*a ".repeat(n) + " b*".repeat(n), as well as with
    images, e.g. "![".repeat(n) + "x" + "](u)".repeat(n)
  • YAML front matter extension: Fix inefficient string concatenation for literal-block values (|)

v0.29.0

Added
  • Support rendering GFM task list items to Markdown (#​433)
  • Support rendering YAML front matter to Markdown (#​434)
  • Alerts
    • Allow customizing HTML attributes for alert title <p> tag via AttributeProvider (#​427)
    • New configuration for AlertsExtension to allow authors to provide custom
      titles per alert. See the
      custom titles section of the alerts README
      for more information. (#​430)
    • New configuration for AlertsExtension to allow alerts to be nested within
      other blocks (including other alerts). See
      this section of the alerts README
      for more information. (#​430)
    • New configuration for AlertsExtension to allow the set of alert types
      (including standard GFM types) to be completely overwritten. (#​435)
      var extension = AlertsExtension.builder()
              .setAllowedTypes(Map.ofEntries(
                      Map.entry("IMPORTANT", "Important"),
                      Map.entry("WARNING", "Warning")
                      Map.entry("BUG", "Known Bug")
              ))
              .build();
      
    • Support rendering alerts to text (#​437)

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 these updates 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 | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.commonmark:commonmark-ext-gfm-tables](https://github.com/commonmark/commonmark-java) | `0.28.0` -> `0.32.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/org.commonmark:commonmark-ext-gfm-tables/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.commonmark:commonmark-ext-gfm-tables/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.commonmark:commonmark-ext-gfm-tables/0.28.0/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.commonmark:commonmark-ext-gfm-tables/0.28.0/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [org.commonmark:commonmark-ext-gfm-strikethrough](https://github.com/commonmark/commonmark-java) | `0.28.0` -> `0.32.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/org.commonmark:commonmark-ext-gfm-strikethrough/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.commonmark:commonmark-ext-gfm-strikethrough/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.commonmark:commonmark-ext-gfm-strikethrough/0.28.0/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.commonmark:commonmark-ext-gfm-strikethrough/0.28.0/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [org.commonmark:commonmark-ext-gfm-alerts](https://github.com/commonmark/commonmark-java) | `0.28.0` -> `0.32.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/org.commonmark:commonmark-ext-gfm-alerts/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.commonmark:commonmark-ext-gfm-alerts/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.commonmark:commonmark-ext-gfm-alerts/0.28.0/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.commonmark:commonmark-ext-gfm-alerts/0.28.0/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [org.commonmark:commonmark-ext-footnotes](https://github.com/commonmark/commonmark-java) | `0.28.0` -> `0.32.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/org.commonmark:commonmark-ext-footnotes/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.commonmark:commonmark-ext-footnotes/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.commonmark:commonmark-ext-footnotes/0.28.0/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.commonmark:commonmark-ext-footnotes/0.28.0/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [org.commonmark:commonmark-ext-autolink](https://github.com/commonmark/commonmark-java) | `0.28.0` -> `0.32.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/org.commonmark:commonmark-ext-autolink/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.commonmark:commonmark-ext-autolink/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.commonmark:commonmark-ext-autolink/0.28.0/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.commonmark:commonmark-ext-autolink/0.28.0/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [org.commonmark:commonmark](https://github.com/commonmark/commonmark-java) | `0.28.0` -> `0.32.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/org.commonmark:commonmark/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.commonmark:commonmark/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.commonmark:commonmark/0.28.0/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.commonmark:commonmark/0.28.0/0.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- > ⚠️ **Warning** > > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>commonmark/commonmark-java (org.commonmark:commonmark-ext-gfm-tables)</summary> ### [`v0.32.0`](https://github.com/commonmark/commonmark-java/blob/HEAD/CHANGELOG.md#0320---2026-11-01) ##### Added - `Scanner` API for extensions now has `findPrev` methods to search backwards, which can be useful for some syntax ([#&#8203;466](https://github.com/commonmark/commonmark-java/issues/466)) ##### Changed - Fix Android incompatibility with minSdk < 30: The minSdk required is now 24. ##### Fixed - Allow consecutive question marks in inline processing instructions ([#&#8203;471](https://github.com/commonmark/commonmark-java/issues/471)) - Allow HTML declarations with lowercase letters and without whitespace ([#&#8203;469](https://github.com/commonmark/commonmark-java/issues/469)) - Reject link reference definitions with unbalanced parentheses in the destination ([#&#8203;470](https://github.com/commonmark/commonmark-java/issues/470)) - Don't let lists interrupt a paragraph with only link reference definitions ([#&#8203;472](https://github.com/commonmark/commonmark-java/issues/472)) - `MarkdownRenderer`: Preserve literal ampersands in links and images ([#&#8203;468](https://github.com/commonmark/commonmark-java/issues/468)) ### [`v0.31.0`](https://github.com/commonmark/commonmark-java/blob/HEAD/CHANGELOG.md#0310---2026-10-22) ##### Changed - To get link text in `LinkProcessor`, `Scanner` needs to be passed to `LinkInfo#text` now ##### Fixed - Correctly parse unclosed titles for link reference definitions, fix source spans in resulting paragraph ([#&#8203;460](https://github.com/commonmark/commonmark-java/issues/460)) - Keep partially consumed tab when an HTML block starts or continues in a block quote ([#&#8203;462](https://github.com/commonmark/commonmark-java/issues/462)) - Make list loose for blank line after HTML block or indented code ([#&#8203;463](https://github.com/commonmark/commonmark-java/issues/463)) - Allow info string of fenced code to start with the other fence character ([#&#8203;464](https://github.com/commonmark/commonmark-java/issues/464)) - Fix quadratic runtime for a large number of lines in a single paragraph starting with potential block opening characters - Fix quadratic runtime for parsing deeply nested image brackets ### [`v0.30.1`](https://github.com/commonmark/commonmark-java/blob/HEAD/CHANGELOG.md#0301---2026-10-11) ##### Changed - Improve MarkdownRenderer performance by appending unescaped spans in bulk ([#&#8203;456](https://github.com/commonmark/commonmark-java/issues/456)) ##### Fixed - Fix parsing code spans after an unclosed backtick string; a regression that was introduced in the previous version (0.30.0) ([#&#8203;459](https://github.com/commonmark/commonmark-java/issues/459)) ### [`v0.30.0`](https://github.com/commonmark/commonmark-java/blob/HEAD/CHANGELOG.md#0300---2026-08-06) ##### Added - New option `lineSeparator` for `MarkdownRenderer.Builder` to change the default line separator from `\n` (e.g. to `\r\n`) ([#&#8203;442](https://github.com/commonmark/commonmark-java/issues/442)) - YAML front matter extension: Support extracting the raw YAML content so that you can do the YAML parsing using a library (instead of the limited built-in parsing) ([#&#8203;391](https://github.com/commonmark/commonmark-java/issues/391)) ##### Changed - Tables extension: Limit max number of parsed table cells by default (1 million cells), see option `maxCells` in `TablesExtension.Builder`. Parsing will throw an error if the limit would be exceeded, to protect against malicious input. - The default for `maxOpenBlockParsers` for `Parser.Builder` is now 100; configure the option to remove the limit. - Limit how deeply inline nodes may nest by default (100), see option `maxInlineNesting` in `Parser.Builder`; configure the option to remove the limit. This covers emphasis-like delimiters (e.g. `*` or the ins extension's `+`) as well as images, which can otherwise nest arbitrarily deep for a small amount of input. Anything over the limit is treated as plain text instead. ##### Fixed - Fix quadratic runtime on various pathological inputs (where inline syntax to start a node is used repeatedly but never finished): - Inline HTML like `"x <!--".repeat(100_000)` ([#&#8203;447](https://github.com/commonmark/commonmark-java/issues/447)) - Autolink starts like `"<".repeat(100_000)` - Emphasis like `"a**b" + "c* ".repeat(100_000)` - Backticks runs of different lengths - Fix stack overflow errors when parsing pathological inputs with repeated syntax: - HTML block attributes - Autolink email addresses - Deeply nested emphasis - Fix stack overflow error when rendering/visiting deeply nested inline nodes, by capping nesting depth during parsing (see `maxInlineNesting` above). This can happen with emphasis, e.g. `"*".repeat(n) + "x" + "*".repeat(n)` or `"*a ".repeat(n) + " b*".repeat(n)`, as well as with images, e.g. `"![".repeat(n) + "x" + "](u)".repeat(n)` - YAML front matter extension: Fix inefficient string concatenation for literal-block values (`|`) ### [`v0.29.0`](https://github.com/commonmark/commonmark-java/blob/HEAD/CHANGELOG.md#0290---2026-06-20) ##### Added - Support rendering GFM task list items to Markdown ([#&#8203;433](https://github.com/commonmark/commonmark-java/issues/433)) - Support rendering YAML front matter to Markdown ([#&#8203;434](https://github.com/commonmark/commonmark-java/issues/434)) - Alerts - Allow customizing HTML attributes for alert title `<p>` tag via `AttributeProvider` ([#&#8203;427](https://github.com/commonmark/commonmark-java/issues/427)) - New configuration for `AlertsExtension` to allow authors to provide custom titles per alert. See the [custom titles section of the alerts README](./commonmark-ext-gfm-alerts/README.md#custom-alert-titles) for more information. ([#&#8203;430](https://github.com/commonmark/commonmark-java/issues/430)) - New configuration for `AlertsExtension` to allow alerts to be nested within other blocks (including other alerts). See [this section of the alerts README](./commonmark-ext-gfm-alerts/README.md#nesting-alerts) for more information. ([#&#8203;430](https://github.com/commonmark/commonmark-java/issues/430)) - New configuration for `AlertsExtension` to allow the set of alert types (including standard GFM types) to be completely overwritten. ([#&#8203;435](https://github.com/commonmark/commonmark-java/issues/435)) ```java var extension = AlertsExtension.builder() .setAllowedTypes(Map.ofEntries( Map.entry("IMPORTANT", "Important"), Map.entry("WARNING", "Warning") Map.entry("BUG", "Known Bug") )) .build(); ``` - Support rendering alerts to text ([#&#8203;437](https://github.com/commonmark/commonmark-java/issues/437)) </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 these updates 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:eyJjcmVhdGVkSW5WZXIiOiIzOS4yNjQuMSIsInVwZGF0ZWRJblZlciI6IjM5LjI2NC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmN5IiwiamF2YSIsInJ1bnRpbWUiXX0=-->
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/commonmark-packages:renovate/commonmark-packages
git switch renovate/commonmark-packages

Merge

Merge the changes and update on Forgejo.
git switch main
git merge --no-ff renovate/commonmark-packages
git switch renovate/commonmark-packages
git rebase main
git switch main
git merge --ff-only renovate/commonmark-packages
git switch renovate/commonmark-packages
git rebase main
git switch main
git merge --no-ff renovate/commonmark-packages
git switch main
git merge --squash renovate/commonmark-packages
git switch main
git merge --ff-only renovate/commonmark-packages
git switch main
git merge renovate/commonmark-packages
git push origin main
Sign in to join this conversation.
No description provided.