implement Render trait for html::Renderer

This commit is contained in:
kmaasrud 2023-02-10 09:46:18 +01:00 committed by Noah Hellman
parent 4743781cb9
commit d7f2c0a819
5 changed files with 28 additions and 44 deletions

View file

@ -1,11 +1,13 @@
use afl::fuzz;
use jotdown::Render;
fn main() {
fuzz!(|data: &[u8]| {
if let Ok(s) = std::str::from_utf8(data) {
let p = jotdown::Parser::new(s);
let mut output = String::new();
jotdown::html::push(p, &mut output);
jotdown::html::Renderer.push(p, &mut output).unwrap();
}
});
}