Skip to content

Commit 592fd2e

Browse files
authored
chore(deps): update rust crate pulldown-cmark to 0.13.0 (#15250)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [pulldown-cmark](https://redirect.github.com/raphlinus/pulldown-cmark) | workspace.dependencies | minor | `0.12.2` -> `0.13.0` | --- ### Release Notes <details> <summary>raphlinus/pulldown-cmark (pulldown-cmark)</summary> ### [`v0.13.0`](https://redirect.github.com/pulldown-cmark/pulldown-cmark/releases/tag/v0.13.0) [Compare Source](https://redirect.github.com/raphlinus/pulldown-cmark/compare/v0.12.2...v0.13.0) #### Breaking Changes - super and sub script support by [@&#8203;jim-taylor-business](https://redirect.github.com/jim-taylor-business) in [https://github.com/pulldown-cmark/pulldown-cmark/pull/966](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/966) - Implement extension WikiLinks; `Options::ENABLE_WIKILINKS` by [@&#8203;frostu8](https://redirect.github.com/frostu8) in [https://github.com/pulldown-cmark/pulldown-cmark/pull/991](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/991) #### New Features - feat: add `-D` CLI option to enable definition lists by [@&#8203;ytmimi](https://redirect.github.com/ytmimi) in [https://github.com/pulldown-cmark/pulldown-cmark/pull/972](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/972) #### Bug Fixes and Code Enhancements - Safer definition lists implementation by [@&#8203;mondeja](https://redirect.github.com/mondeja) in [https://github.com/pulldown-cmark/pulldown-cmark/pull/974](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/974) - Factor duplicate code out of parsers by [@&#8203;notriddle](https://redirect.github.com/notriddle) in [https://github.com/pulldown-cmark/pulldown-cmark/pull/976](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/976) - Stop using string slicing for math where bytes will do by [@&#8203;notriddle](https://redirect.github.com/notriddle) in [https://github.com/pulldown-cmark/pulldown-cmark/pull/977](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/977) - Make indent calc for definition lists match commonmark-hs closer by [@&#8203;notriddle](https://redirect.github.com/notriddle) in [https://github.com/pulldown-cmark/pulldown-cmark/pull/978](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/978) - Ensure "parse" fuzz target covers all options by [@&#8203;ollpu](https://redirect.github.com/ollpu) in [https://github.com/pulldown-cmark/pulldown-cmark/pull/980](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/980) - Change subscript CLI flag to -B by [@&#8203;ollpu](https://redirect.github.com/ollpu) in [https://github.com/pulldown-cmark/pulldown-cmark/pull/993](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/993) - Fix OOB access due to erroneous shift in process_mask by [@&#8203;ollpu](https://redirect.github.com/ollpu) in [https://github.com/pulldown-cmark/pulldown-cmark/pull/990](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/990) - Use slice patterns for `unescape` by [@&#8203;notriddle](https://redirect.github.com/notriddle) in [https://github.com/pulldown-cmark/pulldown-cmark/pull/996](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/996) - Use slice patterns for `scan_eol` by [@&#8203;notriddle](https://redirect.github.com/notriddle) in [https://github.com/pulldown-cmark/pulldown-cmark/pull/998](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/998) - Stop using scan_ch when get will do by [@&#8203;notriddle](https://redirect.github.com/notriddle) in [https://github.com/pulldown-cmark/pulldown-cmark/pull/1003](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/1003) - Fix panic when symbols are present in wikilink before pipe by [@&#8203;frostu8](https://redirect.github.com/frostu8) in [https://github.com/pulldown-cmark/pulldown-cmark/pull/1004](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/1004) - Added a WASM build step to github actions [#&#8203;1005](https://redirect.github.com/raphlinus/pulldown-cmark/issues/1005) by [@&#8203;rimutaka](https://redirect.github.com/rimutaka) in [https://github.com/pulldown-cmark/pulldown-cmark/pull/1006](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/1006) - Use an explicit node for tight paragraphs by [@&#8203;notriddle](https://redirect.github.com/notriddle) in [https://github.com/pulldown-cmark/pulldown-cmark/pull/1015](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/1015) - Fix tasklist parsing bugs by [@&#8203;notriddle](https://redirect.github.com/notriddle) in [https://github.com/pulldown-cmark/pulldown-cmark/pull/1017](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/1017) - Prevent definition list defs from interrupting non-paragraphs by [@&#8203;notriddle](https://redirect.github.com/notriddle) in [https://github.com/pulldown-cmark/pulldown-cmark/pull/1018](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/1018) #### Docs - Add basic skeleton for developer docs by [@&#8203;systemsoverload](https://redirect.github.com/systemsoverload) in [https://github.com/pulldown-cmark/pulldown-cmark/pull/988](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/988) - docs: Added a doc-comment for ENABLE_SMART_PUNCTUATION option. by [@&#8203;rimutaka](https://redirect.github.com/rimutaka) in [https://github.com/pulldown-cmark/pulldown-cmark/pull/1007](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/1007) - Document more Events and Tags by [@&#8203;ModProg](https://redirect.github.com/ModProg) in [https://github.com/pulldown-cmark/pulldown-cmark/pull/1010](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/1010) #### New Contributors - [@&#8203;ytmimi](https://redirect.github.com/ytmimi) made their first contribution in [https://github.com/pulldown-cmark/pulldown-cmark/pull/972](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/972) - [@&#8203;mondeja](https://redirect.github.com/mondeja) made their first contribution in [https://github.com/pulldown-cmark/pulldown-cmark/pull/974](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/974) - [@&#8203;jim-taylor-business](https://redirect.github.com/jim-taylor-business) made their first contribution in [https://github.com/pulldown-cmark/pulldown-cmark/pull/966](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/966) - [@&#8203;systemsoverload](https://redirect.github.com/systemsoverload) made their first contribution in [https://github.com/pulldown-cmark/pulldown-cmark/pull/988](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/988) - [@&#8203;frostu8](https://redirect.github.com/frostu8) made their first contribution in [https://github.com/pulldown-cmark/pulldown-cmark/pull/991](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/991) - [@&#8203;rimutaka](https://redirect.github.com/rimutaka) made their first contribution in [https://github.com/pulldown-cmark/pulldown-cmark/pull/1006](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/1006) - [@&#8203;ModProg](https://redirect.github.com/ModProg) made their first contribution in [https://github.com/pulldown-cmark/pulldown-cmark/pull/1010](https://redirect.github.com/pulldown-cmark/pulldown-cmark/pull/1010) **Full Changelog**: pulldown-cmark/pulldown-cmark@v0.12.2...v0.13.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 5am on the first day of the month" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/rust-lang/cargo). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNzYuMiIsInVwZGF0ZWRJblZlciI6IjM5LjE3Ni4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
2 parents df37758 + fae82d8 commit 592fd2e

File tree

4 files changed

+21
-7
lines changed

4 files changed

+21
-7
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ pathdiff = "0.2.3"
7676
percent-encoding = "2.3.1"
7777
pkg-config = "0.3.31"
7878
proptest = "1.6.0"
79-
pulldown-cmark = { version = "0.12.2", default-features = false, features = ["html"] }
79+
pulldown-cmark = { version = "0.13.0", default-features = false, features = ["html"] }
8080
rand = "0.9.0"
8181
regex = "1.11.1"
8282
rusqlite = { version = "0.33.0", features = ["bundled"] }

crates/mdman/src/format/man.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,9 @@ impl<'e> ManRenderer<'e> {
251251
range.start
252252
);
253253
}
254+
LinkType::WikiLink { .. } => {
255+
panic!("wikilink unsupported");
256+
}
254257
}
255258
}
256259
Tag::Image { .. } => {
@@ -260,7 +263,9 @@ impl<'e> ManRenderer<'e> {
260263
| Tag::MetadataBlock { .. }
261264
| Tag::DefinitionList
262265
| Tag::DefinitionListTitle
263-
| Tag::DefinitionListDefinition => {}
266+
| Tag::DefinitionListDefinition
267+
| Tag::Superscript
268+
| Tag::Subscript => {}
264269
}
265270
}
266271
Event::End(tag_end) => {
@@ -326,7 +331,9 @@ impl<'e> ManRenderer<'e> {
326331
| TagEnd::MetadataBlock(..)
327332
| TagEnd::DefinitionListDefinition
328333
| TagEnd::DefinitionListTitle
329-
| TagEnd::DefinitionList => {}
334+
| TagEnd::DefinitionList
335+
| TagEnd::Superscript
336+
| TagEnd::Subscript => {}
330337
}
331338
}
332339
Event::Text(t) => {

crates/mdman/src/format/text.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,9 @@ impl<'e> TextRenderer<'e> {
217217
range.start
218218
);
219219
}
220+
LinkType::WikiLink { .. } => {
221+
panic!("wikilink unsupported");
222+
}
220223
}
221224
}
222225
Tag::Image { .. } => {
@@ -226,7 +229,9 @@ impl<'e> TextRenderer<'e> {
226229
| Tag::MetadataBlock { .. }
227230
| Tag::DefinitionList
228231
| Tag::DefinitionListTitle
229-
| Tag::DefinitionListDefinition => {}
232+
| Tag::DefinitionListDefinition
233+
| Tag::Superscript
234+
| Tag::Subscript => {}
230235
}
231236
}
232237
Event::End(tag_end) => match &tag_end {
@@ -283,7 +288,9 @@ impl<'e> TextRenderer<'e> {
283288
| TagEnd::DefinitionList
284289
| TagEnd::DefinitionListTitle
285290
| TagEnd::Image
286-
| TagEnd::DefinitionListDefinition => {}
291+
| TagEnd::DefinitionListDefinition
292+
| TagEnd::Superscript
293+
| TagEnd::Subscript => {}
287294
},
288295
Event::Text(t) | Event::Code(t) => {
289296
if wrap_text {

0 commit comments

Comments
 (0)