implement Render trait for html::Renderer
This commit is contained in:
		
					parent
					
						
							
								4743781cb9
							
						
					
				
			
			
				commit
				
					
						d7f2c0a819
					
				
			
		
					 5 changed files with 28 additions and 44 deletions
				
			
		| 
						 | 
				
			
			@ -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();
 | 
			
		||||
        }
 | 
			
		||||
    });
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue