Skip to content

Update commonmark to v0.30.0 (master) - #598

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate-master-commonmark
Open

Update commonmark to v0.30.0 (master)#598
renovate[bot] wants to merge 1 commit into
masterfrom
renovate-master-commonmark

Conversation

@renovate

@renovate renovate Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
org.commonmark:commonmark-ext-gfm-tables 0.29.00.30.0 age confidence
org.commonmark:commonmark 0.29.00.30.0 age confidence

Release Notes

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

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 (|)

Configuration

📅 Schedule: (in timezone Europe/Berlin)

  • Branch creation
    • "after 10pm,before 6am"
  • Automerge
    • At any time (no schedule defined)

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

Rebasing: Whenever PR is behind base branch, 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies label Aug 8, 2026
@renovate
renovate Bot requested a review from azahnen as a code owner August 8, 2026 20:26
@renovate renovate Bot added the dependencies label Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants