Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade pulldown cmark #2401

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Roms1383
Copy link

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
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
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.

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 S-waiting-on-review Status: waiting on a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants