Skip to content

Commit

Permalink
Merge pull request #328 from gjtorikian/dependabot/cargo/comrak-0.32.0
Browse files Browse the repository at this point in the history
Bump comrak from 0.31.0 to 0.32.0
  • Loading branch information
gjtorikian authored Dec 18, 2024
2 parents 08a1a35 + df8e4d2 commit de0fa8a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ext/commonmarker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ magnus = { version = "0.7", features = ["rb-sys"] }
rb-sys = { version = "*", default-features = false, features = [
"stable-api-compiled-fallback",
] }
comrak = { version = "0.31", features = ["shortcodes"] }
comrak = { version = "0.32", features = ["shortcodes"] }
syntect = { version = "5.2", features = ["plist-load"] }
typed-arena = "2.0"
rctree = "0.6"
Expand Down
2 changes: 1 addition & 1 deletion ext/commonmarker/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ fn commonmark_to_html(args: &[Value]) -> Result<String, magnus::Error> {
))
}

fn format_options(rb_options: Option<RHash>) -> Result<comrak::Options, magnus::Error> {
fn format_options<'c>(rb_options: Option<RHash>) -> Result<comrak::Options<'c>, magnus::Error> {
let mut comrak_options = ComrakOptions::default();

if let Some(rb_options) = rb_options {
Expand Down
1 change: 1 addition & 0 deletions ext/commonmarker/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ impl CommonmarkerNode {
ComrakNodeValue::Image(..) => Symbol::new("image"),
ComrakNodeValue::Link(..) => Symbol::new("link"),
ComrakNodeValue::Emph => Symbol::new("emph"),
ComrakNodeValue::Raw(..) => Symbol::new("raw"),
ComrakNodeValue::Strong => Symbol::new("strong"),
ComrakNodeValue::Code(..) => Symbol::new("code"),
ComrakNodeValue::HtmlInline(..) => Symbol::new("html_inline"),
Expand Down

0 comments on commit de0fa8a

Please sign in to comment.