fn html_to_markdown(html: &str) -> String {
        let reps = vec![(r"</?i>", "_"), (r"</?pre>", "```"), (r"</?b>", "*")];
        let mut markdown = html.to_string();
        reps.iter().for_each(|r| {
            let re = Regex::new(r.0).unwrap();
            markdown = re.replace_all(&markdown, r.1).into();
        });
        markdown
    }
/// Simple HTML to Markdown converter.
Simple HTML to Markdown converter.
Simple HTML to Markdown converter .
fn html_to_markdown(html: &str) -> String {
        let reps = vec![(r"</?i>", "_"), (r"</?pre>", "```"), (r"</?b>", "*")];
        let mut markdown = html.to_string();
        reps.iter().for_each(|r| {
            let re = Regex::new(r.0).unwrap();
            markdown = re.replace_all(&markdown, r.1).into();
        });
        markdown
    }
fn html_to_markdown ( html : & str ) -> String { let reps = vec ! [ ( r"</?i>" " " ) ( r"</?pre>" " " ) ( r"</?b>" " " ) ] ; let mut markdown = html . to_string ( ) ; reps . iter ( ) . for_each ( | r | { let re = Regex :: new ( r . 0 ) . unwrap ( ) ; markdown = re . replace_all ( & markdown , r . 1 ) . into ( ) ; } ) ; markdown }
Simple HTML to Markdown converter.
Simple HTML to Markdown converter .
html
&str
html
&str