pub fn render(s: &str) -> Result<String, Error> {
    match parse(s) {
        Err(e) => {
            eprintln!("err: {}", e);
            Err(Error::new(ErrorKind::InvalidInput, e))
        }
        Ok(mut doc) => render_html_with_highlight(&mut doc),
    }
}
/// returns HTML result rendered in partial mode.
returns HTML result rendered in partial mode.
returns HTML result rendered in partial mode .
pub fn render(s: &str) -> Result<String, Error> {
    match parse(s) {
        Err(e) => {
            eprintln!("err: {}", e);
            Err(Error::new(ErrorKind::InvalidInput, e))
        }
        Ok(mut doc) => render_html_with_highlight(&mut doc),
    }
}
pub fn render ( s : & str ) -> Result < String , Error > { match parse ( s ) { Err ( e ) => { eprintln ! ( " " e ) ; Err ( Error :: new ( ErrorKind :: InvalidInput , e ) ) } Ok ( mut doc ) => render_html_with_highlight ( & mut doc ) , } }
returns HTML result rendered in partial mode.
returns HTML result rendered in partial mode .
s
&str
s
&str