correct parse signature

This commit is contained in:
KitsuneCafe 2024-02-04 06:02:24 -05:00
parent 221f115670
commit 64f90e1897

View file

@ -10,10 +10,11 @@ impl 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 parser = pulldown_cmark::Parser::new(src.as_str());
pulldown_cmark::html::write_html(dst, parser)
pulldown_cmark::html::write_html(dst, parser)?;
Ok(())
}
}