pub(crate) fn extract(&mut self, input_content: &InputContent) -> Result<HashSet<Request>> {
        match input_content.file_type {
            FileType::Markdown => self.extract_markdown(&input_content.content),
            FileType::Html => self.extract_html(&input_content.content),
            FileType::Plaintext => self.extract_plaintext(&input_content.content),
        };
        self.create_requests(input_content)
    }
/// Main entrypoint for extracting links from various sources
/// (Markdown, HTML, and plaintext)
Main entrypoint for extracting links from various sources
(Markdown, HTML, and plaintext)
Main entrypoint for extracting links from various sources ( Markdown HTML and plaintext )
pub(crate) fn extract(&mut self, input_content: &InputContent) -> Result<HashSet<Request>> {
        match input_content.file_type {
            FileType::Markdown => self.extract_markdown(&input_content.content),
            FileType::Html => self.extract_html(&input_content.content),
            FileType::Plaintext => self.extract_plaintext(&input_content.content),
        };
        self.create_requests(input_content)
    }
pub ( crate ) fn extract ( & mut self , input_content : & InputContent ) -> Result < HashSet < Request > > { match input_content . file_type { FileType :: Markdown => self . extract_markdown ( & input_content . content ) , FileType :: Html => self . extract_html ( & input_content . content ) , FileType :: Plaintext => self . extract_plaintext ( & input_content . content ) , } ; self . create_requests ( input_content ) }
Main entrypoint for extracting links from various sources
(Markdown, HTML, and plaintext)
Main entrypoint for extracting links from various sources ( Markdown HTML and plaintext )
&mut self
input_content
&InputContent