Update Rust crate pulldown-cmark-to-cmark to v21 #185
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
13.0->21.0Release Notes
Byron/pulldown-cmark-to-cmark (pulldown-cmark-to-cmark)
v21.0.0Compare Source
The breaking release is to avoid side-effects with different
pulldown-cmarkversions.This crate now comes with version 13.
Other
Refactor
Add helper to factor out newline + padding pattern
When writing a newline into the generated Markdown content
to start a new line of output, it is (almost) always necessary
to output the "padding" characters used to indent the content
at the current location in the document, based on the hierarchy
of block-level elements the output cursor is "inside" of.
Since writing a newline and writing the current padding are
always paired, factoring them out into a function should help
with readability and consistency in performing this minor
two-step dance correctly.
Commit Statistics
Commit Details
view details
475478a)ed16be5)fb9bbd6)b47d6c9)State::paddingis shown conventionally (e10010f)efbdd3a)05e247e)2252ba1)v20.0.1Compare Source
Bug Fixes
Commit Statistics
Thanks Clippy
Clippy helped 1 time to make code idiomatic.
Commit Details
view details
27cbc16)80f82f4)435307d)abb85a6)261c23b)1ffd7c8)60e1854)32628b3)v20.0.0Compare Source
Bug Fixes (BREAKING)
Add structured error handling for cmark(), cmark_resume() etc
When
cmark_resume_with_options(), which serves as basis for the othercmark*functions, finds an inconsistent event stream (for example, twoconsecutive heading start tags), it panics.
Introduce a custom error type
Errorin the crate and change the returntype of all public functions from
fmt::Result<_>toResult<_, Error>.The next commit adds an integration test.
Commit Statistics
Commit Details
view details
a442910)3c850de)21f0f5d)4766cc1)fdc5859)v19.0.1Compare Source
Bug Fixes
Commit Statistics
Commit Details
view details
a368f0f)aefd5cb)c61fdd4)b526d7c)v19.0.0Compare Source
New Features (BREAKING)
Statestruct non-exhaustiveThat way, future additions to the rather internal state won't be a reason for breaking changes anymore.
Bug Fixes (BREAKING)
drasticly improve escaping
!,#, and|Raises spec tests from 578 to 580. It handles cases that look like these
Link, not image: !a
v18.0.0Compare Source
Chore
TextMergeStreamfor round-trip testsThis increases the amount of passing tests to 578.
It doesn't strictly improve the quality of implementation,
but since separate text events aren't supposed to be semantic,
these failures seem spurrious.
New Features
Increases passing spec tests from 473 to 477.
Bug Fixes
New Features (BREAKING)
This raises the number of passing spec tests from 459 to 473.
Commit Statistics
Commit Details
view details
6c8bc4d)81ac29b)TextMergeStreamfor round-trip tests (b3d7df2)d8f22c1)d5323a8)33ce10d)2f75de2)848abc3)3fdf308)db76794)8a9573d)v17.0.0Compare Source
New Features (BREAKING)
This raises the number of passing spec tests from 436 to 459.
Bug Fixes (BREAKING)
Commit Statistics
Commit Details
view details
55fe0bc)98818fa)ed4ff6f)3170061)c3a0f32)210a0be)v16.0.1Compare Source
Other
Lower MSRV to 1.71.1
This project builds successfully with the MSRV of
pulldown-cmark. Therefore we can lowerrust-versionto 1.71.1.Add documentation for the current MSRV and that this project follows MSRV policy of
pulldown-cmark.Use
cargo hackfor MSRV CI job, to automatically install rustc according torust-versionand then executecargo check.Commit Statistics
Commit Details
view details
ab22a57)85ca9d4)pulldown-cmark's MSRV. (7269c4f)21a7f26)c6899bc)1a3029f)5745ce5)820b661)43c6e8a)d636dc6)a8c7fa5)d97f8f5)6e2ae15)8f9d4bf)08ffcb8)66b9ed2)v16.0.0Compare Source
Add support for
pulldown-cmarkv0.12, and an understanding of markdown Definition Lists.Commit Statistics
Commit Details
view details
4dd27c5)pulldown-cmarkcrate at v0.12 (17b5308)7b74f1b)f1f18d4)173ae85)7674b54)e686a8f)f1a8a3e)v15.0.1Compare Source
Bug Fixes
Commit Statistics
Commit Details
view details
2ac7472)2ac7472)7cc274e)::for centered column in table. (33811dc)v15.0.0Compare Source
New Features (BREAKING)
Update pulldown cmark
Commit Statistics
Commit Details
view details
e6c8c3e)d72bfd3)d8cbd37)bff28af)6d05a28)89d5dd5)d55ac5d)c8632c4)f961f76)74a5b59)e94e9e4)8e09ddb)153ff68)42049d9)ea04970)1d047be)dcf769c)8723b1f)c81d969)173b8a4)v14.0.1Compare Source
This release contains a fix to avoid escaping characters within codeblocks.
See #73 for details.
Commit Statistics
Commit Details
view details
7376d42)fd7815a)857ff07)a6045c6)v14.0.0Compare Source
This release adds support for keeping escapes in the original source for the input events,
assuming the new
cmark_resume_with_source_range_and_options()function is used.Please also note that for most this won't be a breaking change as only a field was added
to
State, which isn't used unless you do incremental event serialization.Bug Fixes (BREAKING)
last_event_end_indexindices into and how it's usedThis is marked as breaking change as the field itself is new in
Stateand could be breaking for some.
Commit Statistics
Commit Details
view details
1978c0c)cfcabc4)8c6bee4)d9d81c0)c332f98)386e663)last_event_end_indexindices into and how it's used (6c8297c)f66724b)bebff1e)<escape handling (542bc1f)Statederives (ea17e27)78965c4)cmark_resume_with_source_range_and_optionsis different (49f60d5)source_rangepersist special character escape by peeking source (92ad2c8)a234ed5)93cbb33)8c6ccdb)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), 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 this update again.
This PR was generated by Mend Renovate. View the repository job log.