fn extract_markdown(&mut self, input: &str) {
        let parser = Parser::new(input);
        for event in parser {
            match event {
                MDEvent::Start(Tag::Link(_, url, _) | Tag::Image(_, url, _)) => {
                    self.urls.push(StrTendril::from(url.as_ref()));
                }
                MDEvent::Text(txt) => self.extract_plaintext(&txt),
                MDEvent::Html(html) => self.extract_html(&html.to_string()),
                _ => {}
            }
        }
    }
/// Extract unparsed URL strings from a Markdown string.
Extract unparsed URL strings from a Markdown string.
Extract unparsed URL strings from a Markdown string .
fn extract_markdown(&mut self, input: &str) {
        let parser = Parser::new(input);
        for event in parser {
            match event {
                MDEvent::Start(Tag::Link(_, url, _) | Tag::Image(_, url, _)) => {
                    self.urls.push(StrTendril::from(url.as_ref()));
                }
                MDEvent::Text(txt) => self.extract_plaintext(&txt),
                MDEvent::Html(html) => self.extract_html(&html.to_string()),
                _ => {}
            }
        }
    }
fn extract_markdown ( & mut self , input : & str ) { let parser = Parser :: new ( input ) ; for event in parser { match event { MDEvent :: Start ( Tag :: Link ( _ , url , _ ) | Tag :: Image ( _ , url , _ ) ) => { self . urls . push ( StrTendril :: from ( url . as_ref ( ) ) ) ; } MDEvent :: Text ( txt ) => self . extract_plaintext ( & txt ) , MDEvent :: Html ( html ) => self . extract_html ( & html . to_string ( ) ) , _ => { } } } }
Extract unparsed URL strings from a Markdown string.
Extract unparsed URL strings from a Markdown string .
&mut self
input
&str