bump pulldown-cmark version

This commit is contained in:
Rowan 2024-12-04 20:39:39 -06:00
parent fbd6f63ca4
commit 28b64026f9
2 changed files with 4 additions and 4 deletions

View file

@ -12,5 +12,5 @@ homepage = "https://roxy-docs.netlify.app"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
roxy_core = "0.1.0"
pulldown-cmark = "0.9.3"
roxy_core = "~0.1.0"
pulldown-cmark = "~0.12.2"

View file

@ -17,7 +17,7 @@ impl MarkdownParser {
}
}
fn get_parser<'a, 'b>(&self, input: &'a str) -> Parser<'a, 'b> {
fn get_parser<'a>(&self, input: &'a str) -> Parser<'a> {
match self.options {
Some(options) => Parser::new_ext(input, options),
None => Parser::new(input),
@ -29,7 +29,7 @@ impl Parse for MarkdownParser {
fn parse(&mut self, _path: &str, src: &[u8], dst: &mut Vec<u8>) -> Result<(), roxy_core::error::Error> {
let src = String::from_utf8_lossy(src).to_string();
let parser = self.get_parser(src.as_str());
pulldown_cmark::html::write_html(dst, parser)?;
pulldown_cmark::html::write_html_io(dst, parser)?;
Ok(())
}
}