correct parse signature
This commit is contained in:
parent
221f115670
commit
64f90e1897
|
@ -10,10 +10,11 @@ impl MarkdownParser {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Parse for MarkdownParser {
|
impl Parse for MarkdownParser {
|
||||||
fn parse(&mut self, _path: &str, src: &[u8], dst: &mut Vec<u8>) -> std::io::Result<()> {
|
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 src = String::from_utf8_lossy(src).to_string();
|
||||||
let parser = pulldown_cmark::Parser::new(src.as_str());
|
let parser = pulldown_cmark::Parser::new(src.as_str());
|
||||||
pulldown_cmark::html::write_html(dst, parser)
|
pulldown_cmark::html::write_html(dst, parser)?;
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue