Skip to content

Commit a460018

Browse files
committed
Auto merge of #14668 - dacianpascu06:bump, r=epage
chore(deps): update rust crate pulldown-cmark to 0.12.0 ### What does this PR try to resolve? Closes #14667 ### How should we test and review this PR? Cargo build-man stopped giving errors after updating pulldown-cmark ### Additional information
2 parents 7aa7fb1 + 54bbe02 commit a460018

File tree

4 files changed

+28
-10
lines changed

4 files changed

+28
-10
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.1"
7676
percent-encoding = "2.3.1"
7777
pkg-config = "0.3.30"
7878
proptest = "1.5.0"
79-
pulldown-cmark = { version = "0.11.0", default-features = false, features = ["html"] }
79+
pulldown-cmark = { version = "0.12.0", default-features = false, features = ["html"] }
8080
rand = "0.8.5"
8181
regex = "1.10.5"
8282
rusqlite = { version = "0.32.0", features = ["bundled"] }

crates/mdman/src/format/man.rs

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ impl<'e> ManRenderer<'e> {
140140
suppress_paragraph = true;
141141
}
142142
}
143-
Tag::BlockQuote(_kind) => {
143+
Tag::BlockQuote(..) => {
144144
self.flush();
145145
// .RS = move left margin over 3
146146
// .ll = shrink line length
@@ -256,14 +256,18 @@ impl<'e> ManRenderer<'e> {
256256
Tag::Image { .. } => {
257257
bail!("images are not currently supported")
258258
}
259-
Tag::HtmlBlock { .. } | Tag::MetadataBlock { .. } => {}
259+
Tag::HtmlBlock { .. }
260+
| Tag::MetadataBlock { .. }
261+
| Tag::DefinitionList
262+
| Tag::DefinitionListTitle
263+
| Tag::DefinitionListDefinition => {}
260264
}
261265
}
262266
Event::End(tag_end) => {
263267
match &tag_end {
264268
TagEnd::Paragraph => self.flush(),
265269
TagEnd::Heading(..) => {}
266-
TagEnd::BlockQuote => {
270+
TagEnd::BlockQuote(..) => {
267271
self.flush();
268272
// restore left margin, restore line length
269273
self.output.push_str(".br\n.RE\n.ll\n");
@@ -317,7 +321,12 @@ impl<'e> ManRenderer<'e> {
317321
write!(self.output, "<{}>", escape(&dest_url)?)?;
318322
}
319323
}
320-
TagEnd::Image | TagEnd::HtmlBlock | TagEnd::MetadataBlock(..) => {}
324+
TagEnd::Image
325+
| TagEnd::HtmlBlock
326+
| TagEnd::MetadataBlock(..)
327+
| TagEnd::DefinitionListDefinition
328+
| TagEnd::DefinitionListTitle
329+
| TagEnd::DefinitionList => {}
321330
}
322331
}
323332
Event::Text(t) => {

crates/mdman/src/format/text.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,11 @@ impl<'e> TextRenderer<'e> {
222222
Tag::Image { .. } => {
223223
bail!("images are not currently supported")
224224
}
225-
Tag::HtmlBlock { .. } | Tag::MetadataBlock { .. } => {}
225+
Tag::HtmlBlock { .. }
226+
| Tag::MetadataBlock { .. }
227+
| Tag::DefinitionList
228+
| Tag::DefinitionListTitle
229+
| Tag::DefinitionListDefinition => {}
226230
}
227231
}
228232
Event::End(tag_end) => match &tag_end {
@@ -231,7 +235,7 @@ impl<'e> TextRenderer<'e> {
231235
self.hard_break();
232236
}
233237
TagEnd::Heading(..) => {}
234-
TagEnd::BlockQuote => {
238+
TagEnd::BlockQuote(..) => {
235239
self.indent -= 3;
236240
}
237241
TagEnd::CodeBlock => {
@@ -274,7 +278,12 @@ impl<'e> TextRenderer<'e> {
274278
write!(self.word, "<{}>", dest_url)?;
275279
}
276280
}
277-
TagEnd::Image | TagEnd::HtmlBlock | TagEnd::MetadataBlock(..) => {}
281+
TagEnd::HtmlBlock { .. }
282+
| TagEnd::MetadataBlock { .. }
283+
| TagEnd::DefinitionList
284+
| TagEnd::DefinitionListTitle
285+
| TagEnd::Image
286+
| TagEnd::DefinitionListDefinition => {}
278287
},
279288
Event::Text(t) | Event::Code(t) => {
280289
if wrap_text {

0 commit comments

Comments
 (0)