Skip to content

Commit

Permalink
Merge pull request #261 from gjtorikian/dependabot/cargo/comrak-0.20.0
Browse files Browse the repository at this point in the history
Bump comrak from 0.19.0 to 0.20.0
  • Loading branch information
kivikakk authored Dec 1, 2023
2 parents ac6f20a + 3c3929b commit d395309
Show file tree
Hide file tree
Showing 3 changed files with 4 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 @@ -5,7 +5,7 @@ edition = "2021"

[dependencies]
magnus = "0.6"
comrak = { version = "0.19", features = ["shortcodes"] }
comrak = { version = "0.20", features = ["shortcodes"] }
syntect = { version = "5.1", features = ["plist-load"] }

[lib]
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 @@ -125,7 +125,7 @@ fn commonmark_to_html(args: &[Value]) -> Result<String, magnus::Error> {
format!("theme `{}` does not exist", theme),
)
})?;
adapter = SyntectAdapter::new(&theme);
adapter = SyntectAdapter::new(Some(&theme));
syntax_highlighter = Some(&adapter);
}

Expand Down

0 comments on commit d395309

Please sign in to comment.