Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeinhardt committed Apr 27, 2024
1 parent 879dc0d commit 3297323
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 83 deletions.
147 changes: 66 additions & 81 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
[dependencies]
anyhow = { version = "1.0.81", features = ["std"] }
clap = { version = "4.5.3", features = ["derive"] }
markdown = "1.0.0-alpha.16"
markdown = "1.0.0-alpha.17"

[dev-dependencies]
trycmd = "0.15.0"
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use anyhow::{anyhow, Context, Result};
use markdown::message::Message;
use std::collections::HashMap;
use std::fs::{self, read_to_string as read, write};
use std::io;
Expand Down Expand Up @@ -45,7 +46,7 @@ fn slurp(path: &str) -> Result<String, io::Error> {
fs::read_to_string(path)
}

fn convert(input: &str, dangerous: bool) -> Result<String, String> {
fn convert(input: &str, dangerous: bool) -> Result<String, Message> {
let options = &markdown::Options {
compile: markdown::CompileOptions {
allow_dangerous_html: dangerous,
Expand Down

0 comments on commit 3297323

Please sign in to comment.