Skip to content

chore(deps): bump comrak from 0.59.0 to 1.2.0 - #758

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/cargo/comrak-1.2.0
Open

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/cargo/comrak-1.2.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 1, 2026

Copy link
Copy Markdown
Contributor

Bumps comrak from 0.59.0 to 1.2.0.

Release notes

Sourced from comrak's releases.

v1.2.0

We have two exciting bits of news today: there's some new quadratic features, which I've decided I don't like and am addressing (they are not features, they are bugs), and some newly specced extensions.

Share and enjoy!

Security:

  • Fix quadratic time on escaped pipes in table cells, published as GHSA-7f8r-4rh5-vr5h.
    • Looking into this, we also found some nasty cases in failing autolink domains and non-literal emails!
    • These regressed in 1.0.0; table and autolink are both in --gfm, so you almost certainly want to upgrade if you process untrusted content. (reported by @​sventmueller, fixed by @​kivikakk in kivikakk/comrak#948)
  • Fix further quadratic cases that regressed in 1.x. (by @​kivikakk in kivikakk/comrak#948 and kivikakk/comrak#949)
    • Since 1.0.0: OFM block IDs in HTML output, and grid tables in CommonMark output.
    • Since 1.1.0: chained or long attribute blocks, unparsable attribute openers, and deep nesting in CommonMark output.
  • Fix quadratic cases present since before v1. (by @​kivikakk in kivikakk/comrak#948)
    • Autolinks separated by <, sourcepos_chars on long lines, unclosed inline footnotes, unclosed LaTeX math, strikethrough and highlight delimiter runs, long > runs with alerts or multiline block quotes, and unclosed HEEx directives.
  • Limit output amplification, at some cost to output. (by @​kivikakk in kivikakk/comrak#948)
    • Lists, footnote definitions, description items, and fenced containers (block directives, multiline block quotes and alerts) nest 100 deep at most --- about 50 levels of list. Deeper markers are just read as text.
    • Autocompleted table cells now get one allowance per document (of the larger of 500K or the input's length in bytes) instead of per table.
    • The CommonMark formatter writes lazy continuation lines when a container prefix exceeds 64 bytes.
    • The CommonMark formatter writes grid tables with an area allowance per render; exceeding that, a table is written as its cells' contents, as plain blocks in order.
      • Grid table cells also no longer wrap at width.
    • experimental_minimize_commonmark is skipped when it would be costly.

Parser changes:

  • Math has been specced, with some changes. (by @​kivikakk in kivikakk/comrak#941)
    • An escaped backslash no longer escapes the closer after it: $a\\$ b$ now gets closed after a\\, and \(a\\)b\) gets closed at the final \).
    • Code math is a code span between dollars: backtick runs must match, so $``a`b``$ now works, and $`a`b`$ is no longer math.
    • ```math code blocks are math only with math_code. They always were before, even without any extensions enabled! Info strings like math foo count too.
    • Dollar math keeps line endings, instead of turning them into spaces.
  • Description lists have been specced, with some changes. (by @​kivikakk in kivikakk/comrak#945)
    • : now follows list marker rules: it can stand alone (a\n: is now a description list), its content can start on the next line, and five or more spaces after it produce indented code.
    • A blank line between details makes the item loose, and a blank line after a description list in a list item no longer lazily continues.
    • OFM block IDs now label the <dt> or <dd> they end, instead of the <dl>.
  • Superscript and subscript have been specced, with some changes. (by @​kivikakk in kivikakk/comrak#946)
    • Superscript can open inside brackets, so [a^2^](https://github.com/kivikakk/comrak/blob/HEAD/u) and [c^2^] now work.
    • Punctuation no longer affects flanking for ^ and ~, so a^b.^c and x^(1)^y now work.
    • Carets pair one at a time, making ^^a^^ nested superscript.
    • Enabling subscript no longer changes strikethrough flanking: a~~(b)~~ c remains literal with it on as with it off.
  • Header IDs have been specced, with some changes. (by @​kivikakk in kivikakk/comrak#944)
    • Generated header IDs avoid every ID we write under header_id_prefix: explicit IDs from attributes, footnote and footnote reference IDs, and OFM block IDs.
    • Header IDs are never empty; an empty heading now gets -1. Anchorizer starts with "" reserved.

Bug fixes:

... (truncated)

Changelog

Sourced from comrak's changelog.

[v1.2.0] - 2026-11-23

We have two exciting bits of news today: there's some new quadratic features, which I've decided I don't like and am addressing (they are not features, they are bugs), and some newly specced extensions.

Share and enjoy!

Security:

  • Fix quadratic time on escaped pipes in table cells, published as GHSA-7f8r-4rh5-vr5h.
    • Looking into this, we also found some nasty cases in failing autolink domains and non-literal emails!
    • These regressed in 1.0.0; table and autolink are both in --gfm, so you almost certainly want to upgrade if you process untrusted content. (reported by @​sventmueller, fixed by @​kivikakk in kivikakk/comrak#948)
  • Fix further quadratic cases that regressed in 1.x. (by @​kivikakk in kivikakk/comrak#948 and kivikakk/comrak#949)
    • Since 1.0.0: OFM block IDs in HTML output, and grid tables in CommonMark output.
    • Since 1.1.0: chained or long attribute blocks, unparsable attribute openers, and deep nesting in CommonMark output.
  • Fix quadratic cases present since before v1. (by @​kivikakk in kivikakk/comrak#948)
    • Autolinks separated by <, sourcepos_chars on long lines, unclosed inline footnotes, unclosed LaTeX math, strikethrough and highlight delimiter runs, long > runs with alerts or multiline block quotes, and unclosed HEEx directives.
  • Limit output amplification, at some cost to output. (by @​kivikakk in kivikakk/comrak#948)
    • Lists, footnote definitions, description items, and fenced containers (block directives, multiline block quotes and alerts) nest 100 deep at most --- about 50 levels of list. Deeper markers are just read as text.
    • Autocompleted table cells now get one allowance per document (of the larger of 500K or the input's length in bytes) instead of per table.
    • The CommonMark formatter writes lazy continuation lines when a container prefix exceeds 64 bytes.
    • The CommonMark formatter writes grid tables with an area allowance per render; exceeding that, a table is written as its cells' contents, as plain blocks in order.
      • Grid table cells also no longer wrap at width.
    • experimental_minimize_commonmark is skipped when it would be costly.

Parser changes:

  • Math has been specced, with some changes. (by @​kivikakk in kivikakk/comrak#941)
    • An escaped backslash no longer escapes the closer after it: $a\\$ b$ now gets closed after a\\, and \(a\\)b\) gets closed at the final \).
    • Code math is a code span between dollars: backtick runs must match, so $``a`b``$ now works, and $`a`b`$ is no longer math.
    • ```math code blocks are math only with math_code. They always were before, even without any extensions enabled! Info strings like math foo count too.
    • Dollar math keeps line endings, instead of turning them into spaces.
  • Description lists have been specced, with some changes. (by @​kivikakk in kivikakk/comrak#945)
    • : now follows list marker rules: it can stand alone (a\n: is now a description list), its content can start on the next line, and five or more spaces after it produce indented code.
    • A blank line between details makes the item loose, and a blank line after a description list in a list item no longer lazily continues.
    • OFM block IDs now label the <dt> or <dd> they end, instead of the <dl>.
  • Superscript and subscript have been specced, with some changes. (by @​kivikakk in kivikakk/comrak#946)
    • Superscript can open inside brackets, so [a^2^](https://github.com/kivikakk/comrak/blob/main/u) and [c^2^] now work.
    • Punctuation no longer affects flanking for ^ and ~, so a^b.^c and x^(1)^y now work.
    • Carets pair one at a time, making ^^a^^ nested superscript.
    • Enabling subscript no longer changes strikethrough flanking: a~~(b)~~ c remains literal with it on as with it off.
  • Header IDs have been specced, with some changes. (by @​kivikakk in kivikakk/comrak#944)
    • Generated header IDs avoid every ID we write under header_id_prefix: explicit IDs from attributes, footnote and footnote reference IDs, and OFM block IDs.
    • Header IDs are never empty; an empty heading now gets -1. Anchorizer starts with "" reserved.

Bug fixes:

... (truncated)

Commits
  • d9cf170 Merge pull request #950 from kivikakk/release/v1.2.0
  • 68da630 CHANGELOG: finish v1.2.0.
  • 5881ca9 CHANGELOG.md: add generated portion.
  • 25771ed Cargo.toml: v1.2.0.
  • a2af46d Merge pull request #949 from kivikakk/quadratic-reprise
  • 8779fcd xml: escape the info string! D:
  • 015c3f6 attributes: memoise rejected inline attr openers.
  • 9d71487 Merge pull request #948 from kivikakk/quadratic-bonanza
  • 3c280fc cm: write grid cells as plain blocks beyond area allowance.
  • 2076901 cm: use lazy continuation lines under long prefixes.
  • 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 [comrak](https://github.com/kivikakk/comrak) from 0.59.0 to 1.2.0.
- [Release notes](https://github.com/kivikakk/comrak/releases)
- [Changelog](https://github.com/kivikakk/comrak/blob/main/CHANGELOG.md)
- [Commits](kivikakk/comrak@v0.59.0...v1.2.0)

---
updated-dependencies:
- dependency-name: comrak
  dependency-version: 1.2.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the A-deps Area: Dependencies label Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

🐰 Bencher Report

Projectcot
Branchdependabot/cargo/comrak-1.2.0
Testbedgithub-ubuntu-latest
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
microseconds (µs)
(Result Δ%)
Upper Boundary
microseconds (µs)
(Limit %)
empty_router/empty_router📈 view plot
🚷 view threshold
7,907.40 µs
(-31.87%)Baseline: 11,607.00 µs
19,155.96 µs
(41.28%)
json_api/json_api📈 view plot
🚷 view threshold
744.93 µs
(-21.12%)Baseline: 944.33 µs
1,384.20 µs
(53.82%)
nested_routers/nested_routers📈 view plot
🚷 view threshold
733.80 µs
(-18.53%)Baseline: 900.67 µs
1,297.02 µs
(56.58%)
single_root_route/single_root_route📈 view plot
🚷 view threshold
671.50 µs
(-21.56%)Baseline: 856.06 µs
1,244.55 µs
(53.96%)
single_root_route_burst/single_root_route_burst📈 view plot
🚷 view threshold
12,715.00 µs
(-21.21%)Baseline: 16,138.80 µs
23,020.65 µs
(55.23%)
🐰 View full continuous benchmarking report in Bencher

🔗 Link this project to GitHub

@codecov

codecov Bot commented Dec 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
rust 91.15% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-deps Area: Dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants