diff --git a/Cargo.lock b/Cargo.lock index 51af4f3b..a1b0feff 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -262,9 +262,9 @@ dependencies = [ [[package]] name = "comrak" -version = "0.31.0" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "453dcb42e33f7b474d7e0db12e0b8d82802c88f35cf5a1d8c297d0dfcecb154f" +checksum = "48ae8f3e7e3f3d424cbb33354fc36943d507327d210aa5794b0192f4be726c6d" dependencies = [ "bon", "caseless", diff --git a/ext/commonmarker/Cargo.toml b/ext/commonmarker/Cargo.toml index 8050d547..dc0a121e 100644 --- a/ext/commonmarker/Cargo.toml +++ b/ext/commonmarker/Cargo.toml @@ -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" diff --git a/ext/commonmarker/src/lib.rs b/ext/commonmarker/src/lib.rs index f0374eb4..f3ea977c 100644 --- a/ext/commonmarker/src/lib.rs +++ b/ext/commonmarker/src/lib.rs @@ -76,7 +76,7 @@ fn commonmark_to_html(args: &[Value]) -> Result { )) } -fn format_options(rb_options: Option) -> Result { +fn format_options<'c>(rb_options: Option) -> Result, magnus::Error> { let mut comrak_options = ComrakOptions::default(); if let Some(rb_options) = rb_options { diff --git a/ext/commonmarker/src/node.rs b/ext/commonmarker/src/node.rs index ac849f54..4f30cf0c 100644 --- a/ext/commonmarker/src/node.rs +++ b/ext/commonmarker/src/node.rs @@ -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"),