Skip to content

Bump org.commonmark:commonmark from 0.29.0 to 0.30.0 - #10

Merged
github-actions[bot] merged 1 commit into
masterfrom
dependabot/maven/org.commonmark-commonmark-0.30.0
Aug 10, 2026
Merged

Bump org.commonmark:commonmark from 0.29.0 to 0.30.0#10
github-actions[bot] merged 1 commit into
masterfrom
dependabot/maven/org.commonmark-commonmark-0.30.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 10, 2026

Copy link
Copy Markdown
Contributor

Bumps org.commonmark:commonmark from 0.29.0 to 0.30.0.

Release notes

Sourced from org.commonmark:commonmark's releases.

commonmark-java 0.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(https://github.com/commonmark/commonmark-java/blob/HEAD/n) + "x" + "](u)".repeat(n)
  • YAML front matter extension: Fix inefficient string concatenation for literal-block values (|)
Changelog

Sourced from org.commonmark:commonmark's changelog.

[0.30.0] - 2026-08-06

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(https://github.com/commonmark/commonmark-java/blob/main/n) + "x" + "](u)".repeat(n)
  • YAML front matter extension: Fix inefficient string concatenation for literal-block values (|)
Commits
  • 64037cf [maven-release-plugin] prepare release commonmark-parent-0.30.0
  • bd3e066 Fix Javadoc
  • 4aaf754 mvn versions:set -DnewVersion=0.30.0-SNAPSHOT
  • 42b4fb7 Prepare CHANGELOG for version 0.30.0
  • b76e09d Limit how deep inline nodes may nest by default (100)
  • 49f65cb Fix StackOverflowError when parsing deeply nested emphasis
  • 610f84b Fix StackOverflowError when parsing pathological autolink email addresses
  • 9f1d738 Fix StackOverflowError when parsing pathological HTML block attributes
  • e13297e Fix quadratic runtime when parsing pathological backticks
  • 89d1bd3 Fix quadratic runtime when parsing with lots of <
  • 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 [org.commonmark:commonmark](https://github.com/commonmark/commonmark-java) from 0.29.0 to 0.30.0.
- [Release notes](https://github.com/commonmark/commonmark-java/releases)
- [Changelog](https://github.com/commonmark/commonmark-java/blob/main/CHANGELOG.md)
- [Commits](commonmark/commonmark-java@commonmark-parent-0.29.0...commonmark-parent-0.30.0)

---
updated-dependencies:
- dependency-name: org.commonmark:commonmark
  dependency-version: 0.30.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file java Pull requests that update java code labels Aug 10, 2026
@github-actions
github-actions Bot merged commit 08a1da5 into master Aug 10, 2026
2 checks passed
@dependabot
dependabot Bot deleted the dependabot/maven/org.commonmark-commonmark-0.30.0 branch August 10, 2026 22:07
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 java Pull requests that update java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants