mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
chore(deps): update rust crate pulldown-cmark to 0.12.0
This commit is contained in:
parent
15fbd2f607
commit
54bbe02489
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -2812,9 +2812,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "pulldown-cmark"
|
||||
version = "0.11.0"
|
||||
version = "0.12.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8746739f11d39ce5ad5c2520a9b75285310dbfe78c541ccf832d38615765aec0"
|
||||
checksum = "666f0f59e259aea2d72e6012290c09877a780935cc3c18b1ceded41f3890d59c"
|
||||
dependencies = [
|
||||
"bitflags 2.6.0",
|
||||
"memchr",
|
||||
|
@ -76,7 +76,7 @@ pathdiff = "0.2.1"
|
||||
percent-encoding = "2.3.1"
|
||||
pkg-config = "0.3.30"
|
||||
proptest = "1.5.0"
|
||||
pulldown-cmark = { version = "0.11.0", default-features = false, features = ["html"] }
|
||||
pulldown-cmark = { version = "0.12.0", default-features = false, features = ["html"] }
|
||||
rand = "0.8.5"
|
||||
regex = "1.10.5"
|
||||
rusqlite = { version = "0.32.0", features = ["bundled"] }
|
||||
|
@ -140,7 +140,7 @@ impl<'e> ManRenderer<'e> {
|
||||
suppress_paragraph = true;
|
||||
}
|
||||
}
|
||||
Tag::BlockQuote(_kind) => {
|
||||
Tag::BlockQuote(..) => {
|
||||
self.flush();
|
||||
// .RS = move left margin over 3
|
||||
// .ll = shrink line length
|
||||
@ -256,14 +256,18 @@ impl<'e> ManRenderer<'e> {
|
||||
Tag::Image { .. } => {
|
||||
bail!("images are not currently supported")
|
||||
}
|
||||
Tag::HtmlBlock { .. } | Tag::MetadataBlock { .. } => {}
|
||||
Tag::HtmlBlock { .. }
|
||||
| Tag::MetadataBlock { .. }
|
||||
| Tag::DefinitionList
|
||||
| Tag::DefinitionListTitle
|
||||
| Tag::DefinitionListDefinition => {}
|
||||
}
|
||||
}
|
||||
Event::End(tag_end) => {
|
||||
match &tag_end {
|
||||
TagEnd::Paragraph => self.flush(),
|
||||
TagEnd::Heading(..) => {}
|
||||
TagEnd::BlockQuote => {
|
||||
TagEnd::BlockQuote(..) => {
|
||||
self.flush();
|
||||
// restore left margin, restore line length
|
||||
self.output.push_str(".br\n.RE\n.ll\n");
|
||||
@ -317,7 +321,12 @@ impl<'e> ManRenderer<'e> {
|
||||
write!(self.output, "<{}>", escape(&dest_url)?)?;
|
||||
}
|
||||
}
|
||||
TagEnd::Image | TagEnd::HtmlBlock | TagEnd::MetadataBlock(..) => {}
|
||||
TagEnd::Image
|
||||
| TagEnd::HtmlBlock
|
||||
| TagEnd::MetadataBlock(..)
|
||||
| TagEnd::DefinitionListDefinition
|
||||
| TagEnd::DefinitionListTitle
|
||||
| TagEnd::DefinitionList => {}
|
||||
}
|
||||
}
|
||||
Event::Text(t) => {
|
||||
|
@ -222,7 +222,11 @@ impl<'e> TextRenderer<'e> {
|
||||
Tag::Image { .. } => {
|
||||
bail!("images are not currently supported")
|
||||
}
|
||||
Tag::HtmlBlock { .. } | Tag::MetadataBlock { .. } => {}
|
||||
Tag::HtmlBlock { .. }
|
||||
| Tag::MetadataBlock { .. }
|
||||
| Tag::DefinitionList
|
||||
| Tag::DefinitionListTitle
|
||||
| Tag::DefinitionListDefinition => {}
|
||||
}
|
||||
}
|
||||
Event::End(tag_end) => match &tag_end {
|
||||
@ -231,7 +235,7 @@ impl<'e> TextRenderer<'e> {
|
||||
self.hard_break();
|
||||
}
|
||||
TagEnd::Heading(..) => {}
|
||||
TagEnd::BlockQuote => {
|
||||
TagEnd::BlockQuote(..) => {
|
||||
self.indent -= 3;
|
||||
}
|
||||
TagEnd::CodeBlock => {
|
||||
@ -274,7 +278,12 @@ impl<'e> TextRenderer<'e> {
|
||||
write!(self.word, "<{}>", dest_url)?;
|
||||
}
|
||||
}
|
||||
TagEnd::Image | TagEnd::HtmlBlock | TagEnd::MetadataBlock(..) => {}
|
||||
TagEnd::HtmlBlock { .. }
|
||||
| TagEnd::MetadataBlock { .. }
|
||||
| TagEnd::DefinitionList
|
||||
| TagEnd::DefinitionListTitle
|
||||
| TagEnd::Image
|
||||
| TagEnd::DefinitionListDefinition => {}
|
||||
},
|
||||
Event::Text(t) | Event::Code(t) => {
|
||||
if wrap_text {
|
||||
|
Loading…
x
Reference in New Issue
Block a user