Skip to content

Upgrade pulldown cmark to 0.13.0#2401

Merged
ehuss merged 1 commit into
rust-lang:masterfrom
Roms1383:chore/upgrade-pulldown-cmark
Jul 26, 2025
Merged

Upgrade pulldown cmark to 0.13.0#2401
ehuss merged 1 commit into
rust-lang:masterfrom
Roms1383:chore/upgrade-pulldown-cmark

Conversation

@Roms1383
Copy link
Copy Markdown
Contributor

Hi and thanks for this beautiful piece of tooling, I simply love it since the first time I discovered it!

I updated pulldown-cmark but noticed the comment saying not to in Cargo.toml, so feel free to dismiss this PR if this is not supposed to happen from an external contribution.

If however you do accept this PR, I'd like to add a mathematical expression to the tests for the sake of completeness but I'd appreciate that you point me which markdown is the most appropriate, so putting this under draft for now.

Thanks!

@rustbot rustbot added the S-waiting-on-review Status: waiting on a review label Jun 16, 2024
chriskrycho added a commit to rust-lang/book that referenced this pull request Jul 22, 2024
Needs rust-lang/mdBook#2401 to land before it
can be landed, because mdbook requires pulldown-cmark 0.10, so there is
a type mismatch on `Event`:

```
error[E0271]: expected `Parser<'_>` to be an iterator that yields `Event<'_>`, but it yields `Event<'_>`
   --> src/lib.rs:372:39
    |
372 |             html::push_html(&mut buf, events);
    |             ---------------           ^^^^^^ expected `Event<'_>`, found `pulldown_cmark::Event<'_>`
    |             |
    |             required by a bound introduced by this call
    |
    = note: `pulldown_cmark::Event<'_>` and `Event<'_>` have similar names, but are actually distinct types
note: `pulldown_cmark::Event<'_>` is defined in crate `pulldown_cmark`
   --> /Users/chris/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pulldown-cmark-0.10.3/src/lib.rs:354:1
    |
354 | pub enum Event<'a> {
    | ^^^^^^^^^^^^^^^^^^
note: `Event<'_>` is defined in crate `pulldown_cmark`
   --> /Users/chris/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pulldown-cmark-0.11.0/src/lib.rs:366:1
    |
366 | pub enum Event<'a> {
    | ^^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `pulldown_cmark` are being used?
```
@Roms1383
Copy link
Copy Markdown
Contributor Author

Sorry for the ping @ehuss, but from a glance at latest commits it seem you're in charge of PRs.
Any update on this ? pulldown-cmark has released a new version 0.12.0 in the meantime.

Also, saw mention in the guide of bumping version, am I allowed to do so ? Semver check recommends 0.5.0, but I imagine you would gather the changes of many a contributor first ?

@ehuss
Copy link
Copy Markdown
Contributor

ehuss commented Aug 27, 2024

As the comment says, we can't update it at this time. See #2387. We will likely update this when we do a 0.5 release.

@rustbot

This comment has been minimized.

@Roms1383
Copy link
Copy Markdown
Contributor Author

CI fails on minimum MSRV, so holding back and waiting for guidance here :)

@rustbot

This comment has been minimized.

@Roms1383 Roms1383 marked this pull request as ready for review May 24, 2025 01:14
@ehuss ehuss added this to the 0.5 milestone Jul 25, 2025
@ehuss ehuss force-pushed the chore/upgrade-pulldown-cmark branch from d63e9be to 95b5631 Compare July 26, 2025 15:30
@ehuss ehuss force-pushed the chore/upgrade-pulldown-cmark branch from 95b5631 to 91f04bc Compare July 26, 2025 15:33
@ehuss ehuss changed the title Upgrade pulldown cmark Upgrade pulldown cmark to 0.13.0 Jul 26, 2025
Copy link
Copy Markdown
Contributor

@ehuss ehuss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I have update it to 0.13.0.

@ehuss ehuss enabled auto-merge July 26, 2025 15:34
@ehuss ehuss added this pull request to the merge queue Jul 26, 2025
Merged via the queue into rust-lang:master with commit 37273ba Jul 26, 2025
14 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: waiting on a review label Jul 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Breaking Change This would require a SemVer breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants